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)"))
|
(string :tag "Phone number (E.164)"))
|
||||||
:group 'noise)
|
:group 'noise)
|
||||||
|
|
||||||
|
(defcustom noise-sse-max-reconnect-delay 60
|
||||||
|
"Maximum delay in seconds between SSE reconnection attempts."
|
||||||
|
:type 'integer
|
||||||
|
:group 'noise)
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun noise-select-account ()
|
(defun noise-select-account ()
|
||||||
"Select which signal-cli account Noise should use.
|
"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
|
(if noise-mode
|
||||||
(progn
|
(progn
|
||||||
(noise-chat-list)
|
(noise-chat-list)
|
||||||
(noise-receive-start-polling))
|
(noise-receive-start-sse))
|
||||||
(noise-receive-stop-polling)
|
(noise-receive-stop-sse)
|
||||||
(message "Noise mode disabled")))
|
(message "Noise mode disabled")))
|
||||||
|
|
||||||
(provide 'noise)
|
(provide 'noise)
|
||||||
|
|||||||
Reference in New Issue
Block a user