chore: tweaks

This commit is contained in:
Tristan Yang
2023-03-13 18:32:06 +08:00
parent ebfc362705
commit 0bf167e4e8
7 changed files with 13 additions and 9 deletions
+3 -3
View File
@@ -43,7 +43,7 @@ const SessionList: FC<Props> = ({ tempSession }) => {
return { id, mid, type: "channel" };
});
const uSessions = DMs.map((id) => {
console.log("adddd", id);
// console.log("adddd", id);
const mids = userMessage[id];
if (!mids || mids.length == 0) {
return { unreads: 0, id, type: "user" };
@@ -57,9 +57,9 @@ const SessionList: FC<Props> = ({ tempSession }) => {
const { mid: bMid = 0 } = b;
return bMid - aMid;
});
console.log("before qqqq", temps);
// console.log("before qqqq", temps);
const newSessions = tempSession ? [tempSession, ...temps] : temps;
console.log("qqqq", newSessions);
// console.log("qqqq", newSessions);
setSessions(newSessions);
}, [
channelIDs,