mirror of
https://github.com/vale981/ement.el
synced 2025-03-05 09:21:37 -05:00
Comment: Add MAYBE
This commit is contained in:
parent
09553519a5
commit
8c1d58aea0
1 changed files with 3 additions and 0 deletions
3
ement.el
3
ement.el
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue