mirror of
https://gitee.com/HuLaSpark/HuLa.git
synced 2024-11-29 10:18:35 +08:00
fix(hook): 🐛 修复发送消息频繁的bug
This commit is contained in:
parent
153896480e
commit
bbb74ee78a
@ -203,10 +203,10 @@ export const useMsgInput = (messageInputDom: Ref) => {
|
||||
msgType: msg.type,
|
||||
body: { content: msg.content, replyMsgId: msg.reply !== 0 ? msg.reply : undefined }
|
||||
})
|
||||
.then(async (res) => {
|
||||
if (res.message.type === MsgEnum.TEXT) {
|
||||
await chatStore.pushMsg(res)
|
||||
}
|
||||
.then(async () => {
|
||||
// if (res.message.type === MsgEnum.TEXT) {
|
||||
// await chatStore.pushMsg(res)
|
||||
// }
|
||||
// 发完消息就要刷新会话列表,
|
||||
// FIXME 如果当前会话已经置顶了,可以不用刷新
|
||||
chatStore.updateSessionLastActiveTime(globalStore.currentSession.roomId)
|
||||
|
Loading…
Reference in New Issue
Block a user