mirror of
https://github.com/element-hq/synapse
synced 2024-09-05 09:30:07 +00:00
Only forget room if you were in the room
This commit is contained in:
parent
08a8514b7a
commit
73b6bf4629
1 changed files with 2 additions and 1 deletions
|
@ -946,6 +946,7 @@ class RoomMemberHandler(BaseHandler):
|
||||||
user_id, room_id
|
user_id, room_id
|
||||||
))
|
))
|
||||||
|
|
||||||
|
if membership:
|
||||||
yield self.store.forget(user_id, room_id)
|
yield self.store.forget(user_id, room_id)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue