mirror of
https://github.com/element-hq/synapse.git
synced 2024-12-18 17:10:43 +03:00
unhardcode m.room.avatar
This commit is contained in:
parent
c7131baefc
commit
a85e2625cd
1 changed files with 2 additions and 2 deletions
|
@ -314,7 +314,7 @@ class RoomListHandler(BaseHandler):
|
||||||
EventTypes.CanonicalAlias,
|
EventTypes.CanonicalAlias,
|
||||||
EventTypes.RoomHistoryVisibility,
|
EventTypes.RoomHistoryVisibility,
|
||||||
EventTypes.GuestAccess,
|
EventTypes.GuestAccess,
|
||||||
"m.room.avatar",
|
EventTypes.RoomAvatar,
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
|
|
||||||
|
@ -367,7 +367,7 @@ class RoomListHandler(BaseHandler):
|
||||||
guest = guest_event.content.get("guest_access", None)
|
guest = guest_event.content.get("guest_access", None)
|
||||||
result["guest_can_join"] = guest == "can_join"
|
result["guest_can_join"] = guest == "can_join"
|
||||||
|
|
||||||
avatar_event = current_state.get(("m.room.avatar", ""))
|
avatar_event = current_state.get((EventTypes.RoomAvatar, ""))
|
||||||
if avatar_event:
|
if avatar_event:
|
||||||
avatar_url = avatar_event.content.get("url", None)
|
avatar_url = avatar_event.content.get("url", None)
|
||||||
if avatar_url:
|
if avatar_url:
|
||||||
|
|
Loading…
Reference in a new issue