From cb5ece224f7f39bc97d9fd899308a13bf8de9d48 Mon Sep 17 00:00:00 2001 From: Basile Clement Date: Tue, 6 Sep 2022 20:13:11 +0200 Subject: [PATCH] Keep relay buffer when clicking on the nicklist When clicking on a nick on the nicklist, the `/query` command is issued, causing the relay to switch its buffer to the query. weechat-android should switch the *client* buffer instead (see #538), but leave the relay buffer intact. If the relay buffer is switched, it may cause missed notifications due to weechat incorrectly believing that messages have been seen on the relay, since the buffer is opened. Fixes #550 --- .../com/ubergeek42/WeechatAndroid/dialogs/NicklistDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/ubergeek42/WeechatAndroid/dialogs/NicklistDialog.kt b/app/src/main/java/com/ubergeek42/WeechatAndroid/dialogs/NicklistDialog.kt index 931c3b0ae..1ef3ba47f 100644 --- a/app/src/main/java/com/ubergeek42/WeechatAndroid/dialogs/NicklistDialog.kt +++ b/app/src/main/java/com/ubergeek42/WeechatAndroid/dialogs/NicklistDialog.kt @@ -34,7 +34,7 @@ class NicklistDialog : ListDialog(), this.buffer = buffer this.title = buffer.shortName this.adapter = NicklistAdapter(requireContext()) { - Events.SendMessageEvent.fire("input 0x%x /query %s", buffer.pointer, it.name) + Events.SendMessageEvent.fire("input 0x%x /query -noswitch %s", buffer.pointer, it.name) dismiss() } }