Notifications buffer doesn't handle encrypted events (Pantalaimon not configured properly) #290
-
OS/platformLinux Emacs version and provenanceGNU Emacs 29.4, from GNU Guix, installed with Guix Emacs commandDefault xinit for EXWM that comes with the GNU Guix System, which starts with this process: Emacs frame typeGUI Ement package version and provenance0.15.1, from GNU Guix, installed with Guix Actions takenAfter connecting to my Matrix ID, I tried to run ‘ement-notifications’. Observed resultsError instead of notifications buffer when I try opening it for the first time. Quitting out of the backtrace creates a (mostly) blank notifications buffer (see §Etc.) upon re-executing ‘ement-notifications’. Killing the (blank) notifications buffer recreates the error running ‘ement-notifications’ the next time, and repeat. Expected resultsA populated notifications buffer. Backtrace(search-failed "> ")
re-search-forward("> ")
ement-notifications-log-to-buffer(#s(ement-session :user ... :server ... :token "syt_Zm56_hvFgC..." :transaction-id 1057976981 :rooms ... :next-batch "s5137346139_75..." :device-id "8dc1c360ddc167..." :initial-device-display-name "Ement.el: user..." :has-synced-p t :account-data ... :events #<hash-table equal 610/730 0x10e03621>) #s(ement-notification :room-id "!rGTuczgsIZEVa..." :event ... :readp :json-false))
run-hook-with-args(ement-notifications-log-to-buffer #s(ement-session :user ... :server ... :token "syt_Zm56_hvFgC..." :transaction-id 1057976981 :rooms ... :next-batch "s5137346139_75..." :device-id "8dc1c360ddc167..." :initial-device-display-name "Ement.el: user..." :has-synced-p t :account-data ... :events #<hash-table equal 610/730 0x10e03621>) #s(ement-notification :room-id "!rGTuczgsIZEVa..." :event ... :readp :json-false))
ement-notifications-callback(#s(ement-session :user ... :server ... :token "syt_Zm56_hvFgC..." :transaction-id 1057976981 :rooms ... :next-batch "s5137346139_75..." :device-id "8dc1c360ddc167..." :initial-device-display-name "Ement.el: user..." :has-synced-p t :account-data ... :events #<hash-table equal 610/730 0x10e03621>) (... ...))
apply(ement-notifications-callback (... ...))
#f(compiled-function (&rest args2) #<bytecode -0xade0d8be6fe5cf0>)(((notifications . ...) (next_token . "4553541953")))
#f(compiled-function () #<bytecode 0x151bb35b08a05010>)()
plz--respond(#<process plz-request-curl<1>> #<buffer *plz-request-curl*-26334> "finished\n")
apply(plz--respond (#<process plz-request-curl<1>> #<buffer *plz-request-curl*-26334> "finished\n"))
timer-event-handler([t 26286 40415 411547 nil plz--respond (#<process plz-request-curl<1>> #<buffer *plz-request-curl*-26334> "finished\n") nil 377000 nil]) Etc.The blank notifications buffer consists of a single entry like this (redacted the username):
I am using Pantalaimon—but notifications have always worked before, and messaging encrypted rooms still works. I had mentioned earlier that this was the same error as my previous bug report, #288, but it’s only now—that that has been fixed—I remember that the error with the notifications buffer was different from the ‘magit-section’ one; the notifications buffer errored out like this ever since I upgraded to 0.15.1. 😅 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Given that the message shows as being still encrypted, it would seem to suggest that you haven't configured Pantalaimon properly for that room's keys, so it can't decrypt the message, and Ement does not handle encrypted events, so it fails to format properly. |
Beta Was this translation helpful? Give feedback.
-
I am able to load and send messages to that room though. |
Beta Was this translation helpful? Give feedback.
-
Ah, but notifications from unencrypted rooms do show up properly… |
Beta Was this translation helpful? Give feedback.
Given that the message shows as being still encrypted, it would seem to suggest that you haven't configured Pantalaimon properly for that room's keys, so it can't decrypt the message, and Ement does not handle encrypted events, so it fails to format properly.