matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.82k stars 2.13k forks source link

Blocking a room leads to stuck invites #11442

Open deepbluev7 opened 2 years ago

deepbluev7 commented 2 years ago

Description

When banning a room using the admin API, multiple clients (Element Android and Nheko at least) experience issues declining the invite.

Steps to reproduce

The server will return an error code when declining the invite, which in many clients leads to the invite being stuck. While clients could handle that better, I think synapse could help them out here. Especially since you otherwise need to decline the invite in all of your 16 logins.

Ideally the server would either accept the leave event and return the removed room on /sync, even when the room is banned from the HS or it would just send a leave event also to invited users when banning a room.

Version information

If not matrix.org:

redsky17 commented 2 years ago

This happened to me earlier with a spam invite. Nico (who administers the nheko.im room) ended up banning a room that I was spam invited to earlier in the day. Now I have an invite in element android (and nheko) that I cannot get rid of.