chore: Follow up null safety fixes
This commit is contained in:
parent
6e84720f0f
commit
d87c4de5b0
3 changed files with 23 additions and 18 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue