nandi/frqpublic Fork 0
cf1d88f
Commits
Clone
git clone https://git.rickub.com/nandi/frq.git
git clone ssh://git@rickub.com/nandi/frq.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Reopen the last channel on connect

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
nandi committed 2026-08-30T14:16:12-07:00 Browse files
cf1d88f parent: 8a491ba
modified src/frq/state.jolt +6 -1
@@ -244,7 +244,12 @@
244244 (str "Connected as " @form-nick)))
245245 (reset! connecting? false)
246246 (reset! screen :chats)
247- (join! auto-join))
247+ ;; Back where the reader left off. The list is still what a
248+ ;; connect lands on underneath, so Back from the reopened
249+ ;; channel goes to the chats rather than out of the app.
250+ (if-let [last-ch (first (channel-order))]
251+ (open-channel! last-ch)
252+ (join! auto-join)))
248253 "PRIVMSG" (let [[target text] params
249254 ;; The server's clock when it offers one: a replayed
250255 ;; backlog is hours or weeks old, and stamping it with
@@ -244,7 +244,12 @@
244 (str "Connected as " @form-nick)))244 (str "Connected as " @form-nick)))
245 (reset! connecting? false)245 (reset! connecting? false)
246 (reset! screen :chats)246 (reset! screen :chats)
247- (join! auto-join))247+ ;; Back where the reader left off. The list is still what a
248+ ;; connect lands on underneath, so Back from the reopened
249+ ;; channel goes to the chats rather than out of the app.
250+ (if-let [last-ch (first (channel-order))]
251+ (open-channel! last-ch)
252+ (join! auto-join)))
248 "PRIVMSG" (let [[target text] params253 "PRIVMSG" (let [[target text] params
249 ;; The server's clock when it offers one: a replayed254 ;; The server's clock when it offers one: a replayed
250 ;; backlog is hours or weeks old, and stamping it with255 ;; backlog is hours or weeks old, and stamping it with