buffer: Don't move the unread marker for the current buffer.

This commit is contained in:
Damir Jelić 2018-12-10 20:10:58 +01:00
parent cf178a32c4
commit 2a68120d09

View file

@ -1649,6 +1649,11 @@ class RoomBuffer(object):
for event in info.account_data: for event in info.account_data:
if isinstance(event, FullyReadEvent): if isinstance(event, FullyReadEvent):
if event.event_id == self.last_event_id: if event.event_id == self.last_event_id:
current_buffer = W.buffer_search("", "")
if self.weechat_buffer._ptr == current_buffer:
continue
W.buffer_set(self.weechat_buffer._ptr, "unread", "") W.buffer_set(self.weechat_buffer._ptr, "unread", "")
W.buffer_set(self.weechat_buffer._ptr, "hotlist", "-1") W.buffer_set(self.weechat_buffer._ptr, "hotlist", "-1")