|
|
|
@ -25,9 +25,9 @@ class MultipleEmotesSettingsView extends StatelessWidget {
|
|
|
|
|
builder: (context, snapshot) {
|
|
|
|
|
final packStateEvents = room.states['im.ponies.room_emotes'];
|
|
|
|
|
// we need to manually convert the map using Map.of, otherwise assigning null will throw a type error.
|
|
|
|
|
final Map<String, Event?> packs = packStateEvents != null
|
|
|
|
|
? Map<String, Event?>.of(packStateEvents)
|
|
|
|
|
: <String, Event?>{};
|
|
|
|
|
final packs = packStateEvents != null
|
|
|
|
|
? Map<String, StrippedStateEvent?>.of(packStateEvents)
|
|
|
|
|
: <String, StrippedStateEvent?>{};
|
|
|
|
|
if (!packs.containsKey('')) {
|
|
|
|
|
packs[''] = null;
|
|
|
|
|
}
|
|
|
|
|