mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-22 17:46:08 +03:00
Simplify condition
This commit is contained in:
parent
0a2f522644
commit
64fa928792
1 changed files with 2 additions and 2 deletions
|
@ -587,14 +587,14 @@ class SyncHandler(object):
|
|||
# for the "name" value and default to an empty string.
|
||||
if name_id:
|
||||
name = yield self.store.get_event(name_id, allow_none=True)
|
||||
if name and name.content.get("name", ""):
|
||||
if name and name.content.get("name"):
|
||||
defer.returnValue(summary)
|
||||
|
||||
if canonical_alias_id:
|
||||
canonical_alias = yield self.store.get_event(
|
||||
canonical_alias_id, allow_none=True,
|
||||
)
|
||||
if canonical_alias and canonical_alias.content.get("alias", ""):
|
||||
if canonical_alias and canonical_alias.content.get("alias"):
|
||||
defer.returnValue(summary)
|
||||
|
||||
joined_user_ids = [
|
||||
|
|
Loading…
Reference in a new issue