mirror of
https://github.com/element-hq/synapse
synced 2024-08-17 09:20:52 +00:00
These aren't defined for redacted events so don't crash
This commit is contained in:
parent
abaf47bbb6
commit
8916acbc13
1 changed files with 4 additions and 2 deletions
|
@ -484,8 +484,10 @@ class DataStore(RoomMemberStore, RoomStore,
|
||||||
|
|
||||||
for e in events:
|
for e in events:
|
||||||
if e.type == 'm.room.name':
|
if e.type == 'm.room.name':
|
||||||
|
if 'name' in e.content:
|
||||||
name = e.content['name']
|
name = e.content['name']
|
||||||
elif e.type == 'm.room.aliases':
|
elif e.type == 'm.room.aliases':
|
||||||
|
if 'aliases' in e.content:
|
||||||
aliases.extend(e.content['aliases'])
|
aliases.extend(e.content['aliases'])
|
||||||
|
|
||||||
defer.returnValue((name, aliases))
|
defer.returnValue((name, aliases))
|
||||||
|
|
Loading…
Reference in a new issue