0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-07 23:28:57 +01:00

Only forget room if you were in the room

This commit is contained in:
Erik Johnston 2016-03-30 15:09:18 +01:00
parent 08a8514b7a
commit 73b6bf4629

View file

@ -946,7 +946,8 @@ class RoomMemberHandler(BaseHandler):
user_id, room_id user_id, room_id
)) ))
yield self.store.forget(user_id, room_id) if membership:
yield self.store.forget(user_id, room_id)
class RoomListHandler(BaseHandler): class RoomListHandler(BaseHandler):