mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Clean up code
Signed-off-by: Katie Wolfe <katie@dnaf.moe>
This commit is contained in:
parent
5d3ed79944
commit
b3e5db402d
@ -587,14 +587,15 @@ class SyncHandler(object):
|
|||||||
# for the "name" value and default to an empty string.
|
# for the "name" value and default to an empty string.
|
||||||
if name_id:
|
if name_id:
|
||||||
name = yield self.store.get_event(name_id, allow_none=True)
|
name = yield self.store.get_event(name_id, allow_none=True)
|
||||||
if name and name.content and "name" in name.content and name.content.get("name", ""):
|
if name and name.content and name.content.get("name", ""):
|
||||||
defer.returnValue(summary)
|
defer.returnValue(summary)
|
||||||
|
|
||||||
if canonical_alias_id:
|
if canonical_alias_id:
|
||||||
canonical_alias = yield self.store.get_event(
|
canonical_alias = yield self.store.get_event(
|
||||||
canonical_alias_id, allow_none=True,
|
canonical_alias_id, allow_none=True,
|
||||||
)
|
)
|
||||||
if canonical_alias and canonical_alias.content and canonical_alias.content.get("alias", ""):
|
if (canonical_alias and canonical_alias.content
|
||||||
|
and canonical_alias.content.get("alias", "")):
|
||||||
defer.returnValue(summary)
|
defer.returnValue(summary)
|
||||||
|
|
||||||
joined_user_ids = [
|
joined_user_ids = [
|
||||||
|
Loading…
Reference in New Issue
Block a user