fix: Emotes MSC compliance

This commit is contained in:
Sorunome 2021-01-20 10:36:06 +01:00
parent f65d87e38c
commit 70a4dad1c3
No known key found for this signature in database
GPG Key ID: B19471D07FC9BE9C
1 changed files with 2 additions and 2 deletions

View File

@ -495,8 +495,8 @@ class Room {
if (!(content['emoticons'] is Map) && !(content['short'] is Map)) {
return;
}
if (content['pack'] is Map && content['pack']['name'] is String) {
packName = content['pack']['name'];
if (content['pack'] is Map && content['pack']['short'] is String) {
packName = content['pack']['short'];
}
if (packNameOverride != null && packNameOverride.isNotEmpty) {
packName = packNameOverride;