emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals-release/ement d55751927f 01/12: Fix: (ement-notificatio


From: ELPA Syncer
Subject: [elpa] externals-release/ement d55751927f 01/12: Fix: (ement-notifications-bookmark-handler) Call command to restore
Date: Thu, 25 Jan 2024 21:57:56 -0500 (EST)

branch: externals-release/ement
commit d55751927fd21bfaf554de0f236b34e640174969
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>

    Fix: (ement-notifications-bookmark-handler) Call command to restore
---
 README.org             | 1 +
 ement-notifications.el | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.org b/README.org
index dd6d7f1d5d..bb7bcdc658 100644
--- a/README.org
+++ b/README.org
@@ -309,6 +309,7 @@ Ement.el doesn't support encrypted rooms natively, but it 
can be used transparen
 
 + Insertion of sender headers (when using "Elemental" message format).  
(Refactoring contributed by [[https://github.com/Stebalien][Steven Allen]].)
 + Some room event data was being unintentionally serialized to disk when 
caching the room list visibility state. 
([[https://github.com/alphapapa/ement.el/issues/256][#256]])
++ Notifications buffer restores properly when bookmarked.
 
 ** 0.13
 
diff --git a/ement-notifications.el b/ement-notifications.el
index 0db5115009..4850eb5c02 100644
--- a/ement-notifications.el
+++ b/ement-notifications.el
@@ -287,8 +287,8 @@ to `ement-api', which see."
 
 (defun ement-notifications-bookmark-handler (bookmark)
   "Show `ement-notifications' buffer for BOOKMARK."
-  (pcase-let ((`(,_bookmark-name . ,(map buffer-name)) bookmark))
-    (switch-to-buffer (ement-notifications--log-buffer :name buffer-name))))
+  ;; FIXME: Handle multiple sessions.
+  (ement-notifications (ement-complete-session)))
 
 ;;; Footer
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]