|
|
|
@ -313,7 +313,7 @@ const messageSlice = (set, get) => ({
|
|
|
|
|
// * 已读的不再更新状态, 有时候投递结果在已读之后返回
|
|
|
|
|
if (ele.id === ele.actionId && ele.actionId === message.actionId) {
|
|
|
|
|
return { ...ele, id: message.id, status: ele.status === 'read' ? ele.status : message.status, dateString: message.dateString };
|
|
|
|
|
} else if (ele.id === message.id) {
|
|
|
|
|
} else if (String(ele.id) === String(message.id)) {
|
|
|
|
|
// console.log('old msg ele', ele);
|
|
|
|
|
const renderStatus = message?.data?.status ? { status: { ...ele.data.status, loading: 0, download: true } } : {};
|
|
|
|
|
const keepReply = ele.reply ? { reply: ele.reply } : {};
|
|
|
|
|