feat: update noise-mode to use SSE instead of polling
This commit is contained in:
@@ -42,6 +42,11 @@ accounts registered with signal-cli."
|
||||
(string :tag "Phone number (E.164)"))
|
||||
:group 'noise)
|
||||
|
||||
(defcustom noise-sse-max-reconnect-delay 60
|
||||
"Maximum delay in seconds between SSE reconnection attempts."
|
||||
:type 'integer
|
||||
:group 'noise)
|
||||
|
||||
;;;###autoload
|
||||
(defun noise-select-account ()
|
||||
"Select which signal-cli account Noise should use.
|
||||
@@ -80,8 +85,8 @@ Queries the daemon for registered accounts and sets `noise-account'."
|
||||
(if noise-mode
|
||||
(progn
|
||||
(noise-chat-list)
|
||||
(noise-receive-start-polling))
|
||||
(noise-receive-stop-polling)
|
||||
(noise-receive-start-sse))
|
||||
(noise-receive-stop-sse)
|
||||
(message "Noise mode disabled")))
|
||||
|
||||
(provide 'noise)
|
||||
|
||||
Reference in New Issue
Block a user