Fix: (ement-taxy-room-list) Invited rooms have no latest timestamp

This commit is contained in:
Adam Porter 2022-04-09 10:24:23 -05:00
parent 0a4e1f45ae
commit c82d3bdddd

View file

@ -315,7 +315,10 @@
;; (depth) (list :inherit (list 'bufler-group (bufler-level-face depth))))
(format-item (item) (gethash item format-table))
(latest-ts
(item) (ement-room-latest-ts (elt item 0)))
(item) (or (ement-room-latest-ts (elt item 0))
;; Room has no latest timestamp. FIXME: This shouldn't
;; happen, but it can, maybe due to oversights elsewhere.
0))
(room-unread-p
(item) (pcase-let ((`[,(cl-struct ement-room (local (map buffer))) ,_session] item))
(and (buffer-live-p buffer)