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