feat 修复会话列表
This commit is contained in:
@@ -221,9 +221,9 @@ public class MessageSyncService {
|
||||
.collect(Collectors.toMap(ImMessageHistoryEntity::getToId, x -> x));
|
||||
// 合并map到toId
|
||||
fromIdMap.forEach((key,value) -> {
|
||||
toIdMap.merge(key,value,(x,y) -> {
|
||||
if (value.getMessageKey() > y.getMessageKey()) return value;
|
||||
return y;
|
||||
toIdMap.merge(key,value,(v1,v2) -> {
|
||||
if (v1.getMessageKey() > v2.getMessageKey()) return v1;
|
||||
return v2;
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user