0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-15 09:13:44 +01:00
dendrite/roomserver/internal/perform
kegsay 2dee706f9e
PerformInvite: bugfix and rejig control flow (#2137)
* PerformInvite: bugfix and rejig control flow

Local clients would not be notified of invites to rooms
Dendrite had already joined in all cases due to not returning
an `api.OutputNewInviteEvent` for local invites. We now do this.

This was an easy mistake to make due to the control flow of the
function which doesn't handle the happy case at the end of the
function and instead forks the function depending on if the
invite was via federation or not. This has now been changed to
handle the federated invite as if it were an error (in that we
check it, do it and bail out) rather than outstay our welcome.
This ends up with the local invite being the happy case, which
now both sends an `InputRoomEvent` to the roomserver _and_ a
`api.OutputNewInviteEvent` is returned.

* Don't send invite pokes in PerformInvite

* Move event ID into logger
2022-02-02 13:30:48 +00:00
..
perform_backfill.go Try federation when backfill fails to find events in the database (#2113) 2022-01-27 15:52:32 +00:00
perform_forget.go Implement forgetting about rooms (#1572) 2020-11-05 10:19:23 +00:00
perform_inbound_peek.go Roomserver/federation input refactor (#2104) 2022-01-27 14:29:14 +00:00
perform_invite.go PerformInvite: bugfix and rejig control flow (#2137) 2022-02-02 13:30:48 +00:00
perform_join.go More logging tweaks 2022-01-31 16:01:54 +00:00
perform_leave.go More logging tweaks 2022-01-31 16:01:54 +00:00
perform_peek.go Merge federationapi, federationsender, signingkeyserver components (#2055) 2021-11-24 10:45:23 +00:00
perform_publish.go Add Queryer and Inputer and factor out more RSAPI stuff (#1382) 2020-09-02 17:13:15 +01:00
perform_unpeek.go Merge federationapi, federationsender, signingkeyserver components (#2055) 2021-11-24 10:45:23 +00:00