Fix: (ement-room-scroll-up-mark-read) Select correct room window

This commit is contained in:
Adam Porter 2022-09-08 09:55:52 -05:00
parent 96f3c22cca
commit 43ab8f2e09
2 changed files with 4 additions and 2 deletions

View file

@ -262,7 +262,8 @@ However, note that ~matrix-client~ is a more mature client and is very reliable
** 0.1.1 ** 0.1.1
Nothing new yet. *Fixed*
+ Function ~ement-room-scroll-up-mark-read~ selects the correct room window.
** 0.1 ** 0.1

View file

@ -1202,7 +1202,8 @@ Interactively, set the current buffer's ROOM's TOPIC."
'("*Ement Taxy*" "*Ement Rooms*"))) '("*Ement Taxy*" "*Ement Rooms*")))
(window-list)))) (window-list))))
;; Rooms buffer already displayed: select its window and move to next unread room. ;; Rooms buffer already displayed: select its window and move to next unread room.
(with-selected-window rooms-window (progn
(select-window rooms-window)
(funcall (pcase-exhaustive major-mode (funcall (pcase-exhaustive major-mode
('ement-room-list-mode #'ement-room-list-next-unread) ('ement-room-list-mode #'ement-room-list-next-unread)
('ement-taxy-mode #'ement-taxy-next-unread)))) ('ement-taxy-mode #'ement-taxy-next-unread))))