invite-related fixups

This commit is contained in:
Henry Hiles 2026-10-15 20:01:24 -04:00
commit ba258c2fcd
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
6 changed files with 66 additions and 32 deletions

View file

@ -59,8 +59,13 @@ class InvitesController extends Notifier<IList<RoomSummary>> {
summary.copyWith(
worldReadable: historyVisibility == .worldReadable,
),
MembershipContent(:final isDirect) when event.stateKey == userId =>
summary.copyWith(invitedBy: event.sender, isDirect: isDirect),
MembershipContent(:final isDirect, :final reason)
when event.stateKey == userId =>
summary.copyWith(
invitedBy: event.sender,
inviteReason: reason,
isDirect: isDirect,
),
_ => summary,
},
);