perf: 消息时间更新: +24小时!

dev/timezone
Lei OT 1 year ago
parent 14aca311e9
commit 1b59824e73

@ -338,7 +338,10 @@ const messageSlice = (set, get) => ({
conversationsList: [...conversationsList], conversationsList: [...conversationsList],
currentConversation: { currentConversation: {
...currentConversation, ...currentConversation,
...(String(targetId) === String(currentConversation.sn) ? { last_received_time: message.date } : {}), ...(String(targetId) === String(currentConversation.sn) ? {
last_received_time: dayjs(message.date).add(8, 'hours').format(DATETIME_FORMAT),
conversation_expiretime: dayjs(message.date).add(24, 'hours').format(DATETIME_FORMAT),
} : {}),
}, },
}); });
}, },

Loading…
Cancel
Save