mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-03 23:32:22 -08:00
After joinRoom succeeds, the server's sliding-sync proxy can keep a room in the is_invite list for 1+ cycles, sending invite_state that the SDK injects as m.room.member with membership=invite. room.recalculate() then reverts selfMembership back to invite, moving the room back into the invite list and suppressing notifications (getUnreadInfos gates on getMyMembership !== join). Track optimistically joined rooms, subscribe them so real joined state flows in, and re-assert Join after each sync Complete until the server catches up.