fix emotes if canonical alias is null
This commit is contained in:
parent
fabffea1cd
commit
f78657957a
|
@ -592,7 +592,7 @@ class Room {
|
|||
final event = room.getState('im.ponies.room_emotes', stateKey);
|
||||
if (event != null && stateKeyEntry.value is Map) {
|
||||
addEmotePack(
|
||||
room.canonicalAlias.isEmpty ? room.id : canonicalAlias,
|
||||
(room.canonicalAlias?.isEmpty ?? true) ? room.id : canonicalAlias,
|
||||
event.content,
|
||||
stateKeyEntry.value['name']);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue