打开聊天加载上次的

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; break;
} }
} }
channel.postMessage({
type: 'chatBigWindowSendChannelMsg',
chatBigWindowSendChannelMsg: {
msg: '',
}
});
}, []); }, []);
return ( return (

View File

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