Add wallpaper

This commit is contained in:
Christian Pauly 2020-04-03 20:24:25 +02:00
commit 771aa6fbe2
12 changed files with 109 additions and 32 deletions

View file

@ -50,6 +50,7 @@ class MatrixState extends State<Matrix> {
Map<String, dynamic> shareContent;
String activeRoomId;
File wallpaper;
void clean() async {
if (!kIsWeb) return;
@ -365,6 +366,14 @@ class MatrixState extends State<Matrix> {
} else {
client = widget.client;
}
if (client.storeAPI != null) {
client.storeAPI.getItem("chat.fluffy.wallpaper").then((final path) async {
final file = File(path);
if (await file.exists()) {
wallpaper = file;
}
});
}
super.initState();
}