Update synapse/server_notices/server_notices_manager.py
Co-authored-by: Erik Johnston <erikj@jki.re>pull/16679/head
parent
d8aaaef3b4
commit
66debd9118
|
@ -354,7 +354,16 @@ class ServerNoticesManager:
|
|||
"",
|
||||
)
|
||||
|
||||
if room_info_event and room_info_event.get(info_content_key) == info_value:
|
||||
existing_info_value = None
|
||||
if room_info_event:
|
||||
existing_info_value = room_info_event.get(info_content_key)
|
||||
if existing_info_value == info_value:
|
||||
return
|
||||
if not existing_info_value and not info_value:
|
||||
# A missing `info_value` can either be represented by a None
|
||||
# or an empty string, so we assume that if they're both falsey
|
||||
# they're equivalent.
|
||||
return
|
||||
return
|
||||
|
||||
if info_value is None:
|
||||
|
|
Loading…
Reference in New Issue