mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-26 03:54:15 +01:00
Fix wallpaper nullcheck
This commit is contained in:
parent
d0280e1ea9
commit
357d9aef92
@ -368,6 +368,7 @@ class MatrixState extends State<Matrix> {
|
|||||||
}
|
}
|
||||||
if (client.storeAPI != null) {
|
if (client.storeAPI != null) {
|
||||||
client.storeAPI.getItem("chat.fluffy.wallpaper").then((final path) async {
|
client.storeAPI.getItem("chat.fluffy.wallpaper").then((final path) async {
|
||||||
|
if (path == null) return;
|
||||||
final file = File(path);
|
final file = File(path);
|
||||||
if (await file.exists()) {
|
if (await file.exists()) {
|
||||||
wallpaper = file;
|
wallpaper = file;
|
||||||
|
Loading…
Reference in New Issue
Block a user