fix warning

This commit is contained in:
Salvatore Giordano
2021-04-14 14:29:47 +02:00
parent 1bff129deb
commit 45c1e31509
+4 -4
View File
@@ -1399,12 +1399,12 @@ class ClientState {
.map((e) => e.me) .map((e) => e.me)
.listen((user) { .listen((user) {
_userController.add(user); _userController.add(user);
if (user!.totalUnreadCount != null) { if (user?.totalUnreadCount != null) {
_totalUnreadCountController.add(user.totalUnreadCount); _totalUnreadCountController.add(user?.totalUnreadCount);
} }
if (user.unreadChannels != null) { if (user?.unreadChannels != null) {
_unreadChannelsController.add(user.unreadChannels); _unreadChannelsController.add(user?.unreadChannels);
} }
}), }),
_client _client