打开聊天加载上次的

This commit is contained in:
yj 2024-10-16 17:47:19 +08:00
parent 747fd4d25f
commit 6b653becd9
2 changed files with 17 additions and 1 deletions

View File

@ -45,6 +45,12 @@ const ChatBigWindow: React.FC = () => {
break;
}
}
channel.postMessage({
type: 'chatBigWindowSendChannelMsg',
chatBigWindowSendChannelMsg: {
msg: '',
}
});
}, []);
return (

View File

@ -327,7 +327,17 @@ const Meeting: React.FC = () => {
GetRoomKickout(state.channelId, chatBigWindowGetRoomKickout.uid)
break;
case 'chatBigWindowSendChannelMsg':
sendMsg(chatBigWindowSendChannelMsg.msg)
if (chatBigWindowSendChannelMsg.msg) {
sendMsg(chatBigWindowSendChannelMsg.msg)
} else[
setChatList((res: any) => {
channel.postMessage({
type: 'chatList',
chatList: res,
})
return res
})
]
break;
case 'noticeWindowPostRoomManager':
postRoomManager({