mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-16 23:11:34 +01:00
Check canonical alias event exists
This commit is contained in:
parent
2cd9260500
commit
56aa4e7a9a
1 changed files with 2 additions and 1 deletions
|
@ -257,7 +257,8 @@ class DirectoryHandler(BaseHandler):
|
|||
room_id, EventTypes.CanonicalAlias, ""
|
||||
)
|
||||
|
||||
if alias_event.content.get("alias", "") != room_alias.to_string():
|
||||
alias_str = room_alias.to_string()
|
||||
if not alias_event or alias_event.content.get("alias", "") != alias_str:
|
||||
return
|
||||
|
||||
msg_handler = self.hs.get_handlers().message_handler
|
||||
|
|
Loading…
Reference in a new issue