Comment: Add MAYBE

This commit is contained in:
Adam Porter 2022-03-29 23:35:09 -05:00
parent 09553519a5
commit 8c1d58aea0

View file

@ -987,6 +987,9 @@ is not at the latest known message event."
((map notification_count highlight_count) unread-notifications)
(fully-read-event-id (map-nested-elt (alist-get "m.fully_read" account-data nil nil #'equal)
'(content event_id))))
;; MAYBE: Ignore whether the buffer is modified. Since we have a better handle on how
;; Matrix does notifications/unreads/highlights, maybe that's not needed, and it would
;; be more consistent to ignore it.
(or (and buffer (buffer-modified-p buffer))
(and unread-notifications
(or (not (zerop notification_count))