mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Add missing None check
This commit is contained in:
parent
3cb1799347
commit
7b62d0bc70
@ -232,6 +232,7 @@ class RoomMemberHandler(BaseHandler):
|
|||||||
errcode=Codes.BAD_STATE
|
errcode=Codes.BAD_STATE
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if old_state:
|
||||||
same_content = content == old_state.content
|
same_content = content == old_state.content
|
||||||
same_membership = old_membership == effective_membership_state
|
same_membership = old_membership == effective_membership_state
|
||||||
same_sender = requester.user.to_string() == old_state.sender
|
same_sender = requester.user.to_string() == old_state.sender
|
||||||
|
Loading…
Reference in New Issue
Block a user