chore: updates

This commit is contained in:
Tristan Yang
2023-01-29 09:28:11 +08:00
parent 46113159d2
commit 0abf149188
8 changed files with 43 additions and 67 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ const SessionList: FC<Props> = () => {
if (!mids || mids.length == 0) {
return { key: `channel_${id}`, unreads: 0, id, type: "channel" };
}
const mid = [...mids].pop();
const mid = [...mids].sort().pop();
return { key: `channel_${id}`, id, mid, type: "channel" };
});
const tmps = [...(cSessions as ChatSession[])].sort((a, b) => {