fix: Multiple related store things

This commit is contained in:
Sorunome 2020-10-25 16:59:55 +01:00
commit c58df5c99c
8 changed files with 37 additions and 241 deletions

View file

@ -185,7 +185,7 @@ class _SettingsState extends State<Settings> {
void deleteWallpaperAction(BuildContext context) async {
Matrix.of(context).wallpaper = null;
await Matrix.of(context).store.setItem('chat.fluffy.wallpaper', null);
await Matrix.of(context).store.deleteItem('chat.fluffy.wallpaper');
setState(() => null);
}