Fix: (ement-room-read-receipt-timer) Use window-live-p

This may fix a weird bug introduced in the last commit or
two (involving variable-binding-depth errors, timers running
repeatedly and making Emacs unresponsive, etc--I have no idea how the
changes could have caused such a thing, but they apparently did).
This commit is contained in:
Adam Porter 2022-09-09 16:34:19 -05:00
parent b07b7c0da1
commit 35ea510bbf

View file

@ -2458,7 +2458,7 @@ WINDOW's end is beyond the marker. For use in
"Send read receipt for WINDOW displaying ROOM-BUFFER.
To be called by timer run by
`ement-room-start-read-receipt-timer'."
(when (and (windowp window)
(when (and (window-live-p window)
(eq (window-buffer window) room-buffer))
(with-selected-window window
(let ((read-receipt-node (ement-room--ewoc-last-matching ement-ewoc