mirror of
https://github.com/vale981/ement.el
synced 2025-03-04 17:01:39 -05:00
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:
parent
b07b7c0da1
commit
35ea510bbf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue