|
|
|
@ -338,7 +338,10 @@ const messageSlice = (set, get) => ({
|
|
|
|
|
conversationsList: [...conversationsList],
|
|
|
|
|
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),
|
|
|
|
|
} : {}),
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|