0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-07-02 03:08:26 +02:00
dendrite/roomserver/internal
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
..
helpers Roomserver/federation input refactor (#2104) 2022-01-27 14:29:14 +00:00
input More logging tweaks 2022-01-31 16:01:54 +00:00
perform PerformInvite: bugfix and rejig control flow (#2137) 2022-02-02 13:30:48 +00:00
query Roomserver/federation input refactor (#2104) 2022-01-27 14:29:14 +00:00
alias.go Various alias fixes (#1934) 2021-07-21 16:53:50 +01:00
api.go Roomserver/federation input refactor (#2104) 2022-01-27 14:29:14 +00:00