~emersion/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH gamja] components/app: switch to server buffer on close only if active

Details
Message ID
<165225807033.22380.12271602005617229185-0@git.sr.ht>
DKIM signature
missing
Download raw message
Patch: +3 -1
From: Umar Getagazov <umar@handlerug.me>

If the buffer that's being closed is not the active one, there's no
point in switching the user away to another buffer.
---
 components/app.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/components/app.js b/components/app.js
index 3c1f2a6..5de8b76 100644
--- a/components/app.js
+++ b/components/app.js
@@ -1298,7 +1298,9 @@ export default class App extends Component {
			}
			// fallthrough
		case BufferType.NICK:
			this.switchBuffer({ name: SERVER_BUFFER });
			if (this.state.activeBuffer === buf.id) {
				this.switchBuffer({ name: SERVER_BUFFER });
			}
			this.setState((state) => {
				let buffers = new Map(state.buffers);
				buffers.delete(buf.id);
-- 
2.34.2

[gamja/patches/.build.yml] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CJWSMF0FIH0V.1PB99YSVDOM0T@cirno2>
In-Reply-To
<165225807033.22380.12271602005617229185-0@git.sr.ht> (view parent)
DKIM signature
missing
Download raw message
gamja/patches/.build.yml: SUCCESS in 51s

[components/app: switch to server buffer on close only if active][0] from [~handlerug][1]

[0]: https://lists.sr.ht/~emersion/public-inbox/patches/32170
[1]: umar@handlerug.me

✓ #755741 SUCCESS gamja/patches/.build.yml https://builds.sr.ht/~emersion/job/755741
Reply to thread Export thread (mbox)