buffer: Don't move the unread marker for the current buffer.
This commit is contained in:
parent
cf178a32c4
commit
2a68120d09
1 changed files with 5 additions and 0 deletions
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue