Skip to content

Commit

Permalink
Always set telega--favorite-messages-storage-message on callback
Browse files Browse the repository at this point in the history
  • Loading branch information
zevlg committed Dec 15, 2024
1 parent 901058a commit 9459977
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions telega-msg.el
Original file line number Diff line number Diff line change
Expand Up @@ -1514,9 +1514,9 @@ For interactive use only."
:callback
(lambda (reply)
(let ((messages (plist-get reply :messages)))
(unless (seq-empty-p messages)
(setq telega--favorite-messages-storage-message
(seq-first messages))
(setq telega--favorite-messages-storage-message
(seq-first messages))
(when telega--favorite-messages-storage-message
(let ((file (telega-msg--content-file
telega--favorite-messages-storage-message)))
(cl-assert file)
Expand Down

0 comments on commit 9459977

Please sign in to comment.