Skip to content

Commit

Permalink
Keep relay buffer when clicking on the nicklist
Browse files Browse the repository at this point in the history
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 ubergeek42#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 ubergeek42#550
  • Loading branch information
Elarnon authored Sep 6, 2022
1 parent 7b11324 commit cb5ece2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit cb5ece2

Please sign in to comment.