Commits
2026-11-25
♻️ refactor: one clean schema, integer ids and one transaction per callAhmet Kaan Gümüş · 22b1bb7
♻️ refactor: one clean schema, integer ids and one transaction per call The database layer is rebuilt on turso with one STRICT schema file in place of the migration list, integer ids, explicit created_at columns and settings, log actions and snippet polls stored as bitcode. A single connection runs every call inside one BEGIN IMMEDIATE transaction and events are published only on success. SQL lives only in db/, one file per table, through four helpers and one row reader; disk work for attachments moves to files.rs. Session tokens are stored hashed. Fixes case sensitive login against case insensitive uniqueness, logout leaving the connection signed in, user deletion failing inside a lone DM call, deleted DMs keeping their voice room, kicking non members, builders leaving owned groups ownerless, half applied multi step writes and events sent for failed calls. A stale database file now refuses to start instead of failing later.
♻️ refactor: fixed auth per connection, one hub, one fan-out and one room ownerAhmet Kaan Gümüş · 700e2a4
♻️ refactor: fixed auth per connection, one hub, one fan-out and one room owner A connection now authenticates once with Hello/Welcome; login, logout and account switches reconnect instead of mutating auth mid connection. The server actor and its state copies are replaced by a Hub of clients with presence transitions and kicks, events fan out through one publish path that encodes once and never blocks, and voice plus shares live in one Rooms owner with a single leave path. Media control moves to Down::Media.
♻️ refactor: one transport, one framing and a split error modelAhmet Kaan Gümüş · e2d1bd5
♻️ refactor: one transport, one framing and a split error model
Split the client network module into net/{link,events,datagram,voice,share}.
Both sides share one QUIC transport config, an ALPN protocol version and
typed close codes; the client resolves hosts per family with backoff.
Every stream uses one length prefixed bitcode frame with a reset on drop
send guard, and uploads, downloads and backups go through Open{Call,
Upload, Fetch}. Wire errors are separate from server internal and client
link errors, and the GUI matches enums instead of strings.