Browse Source

发消息修改

wr_202303
zsw 4 months ago
parent
commit
c8e4d9e2f3
  1. 8
      lib/im/im_view/im_page.dart

8
lib/im/im_view/im_page.dart

@ -102,9 +102,7 @@ class _IMPage extends State<IMPage> implements OnChatMessage {
if (contactMap[message.fromId] == null) { if (contactMap[message.fromId] == null) {
/// TODO: message.fromId request Api and setState /// TODO: message.fromId request Api and setState
} }
if (mounted) { refreshState();
setState(() {});
}
}); });
debugPrint("messages: queryList"); debugPrint("messages: queryList");
@ -129,9 +127,7 @@ class _IMPage extends State<IMPage> implements OnChatMessage {
} }
contactMap = contacts.lGroupBy((p0) => p0.userId).mGroupItem; contactMap = contacts.lGroupBy((p0) => p0.userId).mGroupItem;
if (mounted) { refreshState();
setState(() {});
}
} }
void updateLastMessage(String userId) async { void updateLastMessage(String userId) async {

Loading…
Cancel
Save