Skip to content

Update rooms that get left, fix restored invites, respect can-send/react permissions - #1365

Merged
kevinaboos merged 2 commits into
project-robius:mainfrom
kevinaboos:issue_656
Nov 12, 2026
Merged

kevinaboos merged 2 commits into
project-robius:mainfrom
kevinaboos:issue_656

Conversation

@kevinaboos

Copy link
Copy Markdown
Member

we now maintain the room membership state of every open room in order for any screen to be able to figure out why a room isn't loaded (e.g., after being restored).

When we leave a room that's open, or get kicked or banned from it, the input bar now shows a new RoomMembershipFooter widget (kinda like the tombstone footer) that explains what happened and no longer lets you hopelessly send invalid messages into a void room. It also shows buttons for re-joining (or knocking, etc) based on the join rule.

we still let you view the timeline, but you can't reply, react, edit, pin, delete, invite, etc. We also don't send read receipts or load history, mostly because none of that works in a room you're not in. Re-joining or leaving works transparently without killing the roomscreen instance.

Similarly, an InviteScreen whose invite was accepted, rejected, or otherwise "recanted" no longer just spins infinitly after being restored. If it was an invite to a space that got joined elsehwere, it gets converted into a Space Lobby Screen, and similarly for room screens. If the invite was rejected, it says why.

An extension of those changes are that we now:

  • check permissions for sending messages before enabling reply/edit.
  • Reactions check permissions too, and show an error explaining why they cannot be sent instead of silently doing nothing.
  • An in-progress edit that the homeserver rejects is restored back into the EditingPane so that you don't lose your changed draft. That was annoying me.

Fixes #656.
Fixes #1050.

…act perms

we now maintain the room membership state of every open room in order for
any screen to be able to figure out why a room isn't loaded (e.g., after being restored).

When we leave a room that's open, or get kicked or banned from it,
the input bar now shows a new `RoomMembershipFooter` widget (kinda like the
tombstone footer) that explains what happened and no longer lets you
hopelessly send invalid messages into a void room.
It also shows buttons for re-joining (or knocking, etc) based on the join rule.

we still let you view the timeline, but you can't reply, react, edit, pin,
delete, invite, etc. We also don't send read receipts or load history,
mostly because none of that works in a room you're not in.
Re-joining or leaving works transparently without killing the roomscreen instance.

Similarly, an InviteScreen whose invite was accepted, rejected, or otherwise
"recanted" no longer just spins infinitly after being restored.
If it was an invite to a space that got joined elsehwere, it gets converted
into a Space Lobby Screen, and similarly for room screens.
If the invite was rejected, it says why.

An extension of those changes are that we now:
* check permissions for sending messages before enabling reply/edit.
* Reactions check permissions too, and show an error explaining why they
  cannot be sent instead of silently doing nothing.
* An in-progress edit that the homeserver rejects is restored back into
  the EditingPane so that you don't lose your changed draft. That was annoying me.

Fixes project-robius#656.
Fixes project-robius#1050.
Upstream removed `invited_room_info()` and inlined its list of via servers
into `add_new_room()`, so we drop that function and have `add_new_room()`
use the shared `via_servers()` helper instead.
@kevinaboos
kevinaboos merged commit 3e4e56a into project-robius:main Nov 12, 2026
12 checks passed
@kevinaboos
kevinaboos deleted the issue_656 branch November 12, 2026 08:25
kevinaboos added a commit that referenced this pull request Nov 12, 2026
Fix layout a bit too, things weren't perfectly vertically centered.
WE also clarify how an invite was ended (either here or elsewhere).

Follow-up to #1365.
kevinaboos added a commit that referenced this pull request Nov 12, 2026
…ites

A footer could've squeezed the EditingPane out of view in a really
short view, but that's now fixed.
If an invite was recalled or otherwise ended, it now says who ended it
and why (the reason).

Cached memberships are cleared when the session token expires.

Follow-up to #1365.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant