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)
.listen((user) {
_userController.add(user);
if (user!.totalUnreadCount != null) {
_totalUnreadCountController.add(user.totalUnreadCount);
if (user?.totalUnreadCount != null) {
_totalUnreadCountController.add(user?.totalUnreadCount);
}
if (user.unreadChannels != null) {
_unreadChannelsController.add(user.unreadChannels);
if (user?.unreadChannels != null) {
_unreadChannelsController.add(user?.unreadChannels);
}
}),
_client