chore: Follow up null safety fixes

This commit is contained in:
Krille Fear 2022-02-06 17:09:45 +01:00
commit d87c4de5b0
3 changed files with 23 additions and 18 deletions

View file

@ -33,10 +33,10 @@ class EmotesSettingsController extends State<EmotesSettings> {
final event = (room != null
? room!.getState('im.ponies.room_emotes', stateKey ?? '')
: client.accountData['im.ponies.user_emotes']) ??
BasicEvent.fromJson(<String, dynamic>{
'type': 'm.dummy',
'content': <String, dynamic>{},
});
BasicEvent(
type: 'm.dummy',
content: {},
);
// make sure we work on a *copy* of the event
return BasicEvent.fromJson(event.toJson()).parsedImagePackContent;
}