fix listeners for thingy
This commit is contained in:
parent
574562b459
commit
10d1771af9
|
@ -24,9 +24,11 @@ class _NotificationsState extends State<Notifications> {
|
|||
SingleNotif notif = SingleNotif(
|
||||
content: jsonDecode(json["payload"]),
|
||||
);
|
||||
setState(() {
|
||||
notifs.insert(0, notif);
|
||||
});
|
||||
if (mounted) {
|
||||
setState(() {
|
||||
notifs.insert(0, notif);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -6,7 +6,6 @@ import 'package:loris/pages/notifications/notifications.dart';
|
|||
import 'package:loris/pages/timeline/timeline.dart';
|
||||
import 'package:loris/pages/settings/settings.dart';
|
||||
import '../business_logic/websocket.dart' as websocket;
|
||||
import '../pages/timeline/timeline.dart' as tl;
|
||||
|
||||
class MainScaffold extends StatefulWidget {
|
||||
const MainScaffold({Key? key}) : super(key: key);
|
||||
|
|
Loading…
Reference in New Issue