summary refs log tree commit diff
path: root/changelog.d/8751.misc
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2020-11-16 15:37:36 +0000
committerGitHub <noreply@github.com>2020-11-16 15:37:36 +0000
commit4f76eef0e8190a1f5b9985853fe645275c9a797c (patch)
treef7d01bed40f273bab76b3968d128ffdd3cfc2a8f /changelog.d/8751.misc
parentRename `create_test_json_resource` to `create_test_resource` (#8759) (diff)
downloadsynapse-4f76eef0e8190a1f5b9985853fe645275c9a797c.tar.xz
Generalise _locally_reject_invite (#8751)
`_locally_reject_invite` generates an out-of-band membership event which can be passed to clients, but not other homeservers.

This is used when we fail to reject an invite over federation. If this happens, we instead just generate a leave event locally and send it down /sync, allowing clients to reject invites even if we can't reach the remote homeserver.

A similar flow needs to be put in place for rescinding knocks. If we're unable to contact any remote server from the room we've tried to knock on, we'd still like to generate and store the leave event locally. Hence the need to reuse, and thus generalise, this method.

Separated from #6739.
Diffstat (limited to 'changelog.d/8751.misc')
-rw-r--r--changelog.d/8751.misc1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/8751.misc b/changelog.d/8751.misc
new file mode 100644
index 0000000000..204c280c0e
--- /dev/null
+++ b/changelog.d/8751.misc
@@ -0,0 +1 @@
+Generalise `RoomMemberHandler._locally_reject_invite` to apply to more flows than just invite.
\ No newline at end of file