mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
fix case where empty string state check is evaulated as False
This commit is contained in:
parent
8cfad2e686
commit
c055c91655
@ -76,7 +76,8 @@ class ServerNoticesManager(object):
|
|||||||
"sender": system_mxid,
|
"sender": system_mxid,
|
||||||
"content": event_content,
|
"content": event_content,
|
||||||
}
|
}
|
||||||
if state_key:
|
|
||||||
|
if state_key is not None:
|
||||||
event_dict['state_key'] = state_key
|
event_dict['state_key'] = state_key
|
||||||
|
|
||||||
res = yield self._event_creation_handler.create_and_send_nonmember_event(
|
res = yield self._event_creation_handler.create_and_send_nonmember_event(
|
||||||
|
Loading…
Reference in New Issue
Block a user