mirror of
https://github.com/vale981/ement.el
synced 2025-03-04 17:01:39 -05:00
Fixes
This commit is contained in:
parent
7b234d039c
commit
2d492fd839
2 changed files with 3 additions and 2 deletions
|
@ -138,7 +138,8 @@ To be used as the pretty-printer for `ewoc-create'."
|
|||
(_ 'default)))
|
||||
(string (propertize (pcase type
|
||||
("m.room.message" body)
|
||||
("m.room.member" (alist-get 'membership content)))
|
||||
("m.room.member" (alist-get 'membership content))
|
||||
(_ (concat "EVENT-TYPE: " type)))
|
||||
'face body-face)))
|
||||
(concat timestamp string)))
|
||||
|
||||
|
|
2
ement.el
2
ement.el
|
@ -163,7 +163,7 @@ SINCE may be such a token."
|
|||
(pcase-let* (((map rooms) data)
|
||||
((map ('join joined-rooms)) rooms)
|
||||
;; FIXME: Only counts events in joined-rooms list.
|
||||
(num-events (cl-loop for room in joined-rooms
|
||||
(num-events (cl-loop for (_id . room) in joined-rooms
|
||||
sum (length (map-nested-elt room '(state events)))
|
||||
sum (length (map-nested-elt room '(timeline events)))))
|
||||
(ement-progress-reporter (make-progress-reporter "Ement: Reading events..." 0 num-events))
|
||||
|
|
Loading…
Add table
Reference in a new issue