Fix chat read status getting changed while in the same chat

This commit is contained in:
Tanay Neotia
2022-12-24 18:07:14 -05:00
parent 88f490246f
commit 6f6874e70d
3 changed files with 7 additions and 5 deletions

View File

@ -134,6 +134,7 @@ class MethodChannelService extends GetxService {
}
case "markAsRead":
case "chat-read-status-changed":
if (ls.isAlive) return;
await storeStartup.future;
Logger.info("Received chat status change from FCM");
Map<String, dynamic> data = jsonDecode(call.arguments);