diff --git a/noise.el b/noise.el index 8c842fd..a998c94 100644 --- a/noise.el +++ b/noise.el @@ -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)