Browse Source

修复发送消息一直卡住的bug

master
xsx 6 months ago
parent
commit
9f385eaf6a
  1. 2
      im-uniapp/store/chatStore.js
  2. 2
      im-web/src/store/chatStore.js

2
im-uniapp/store/chatStore.js

@ -527,7 +527,7 @@ export default defineStore('chatStore', {
continue; continue;
} }
if (msgInfo.tmpId == m.tmpId) { if (msgInfo.tmpId == m.tmpId) {
return idx; return m;
} }
// 如果id比要查询的消息小,说明没有这条消息 // 如果id比要查询的消息小,说明没有这条消息
if (m.tmpId && m.tmpId < msgInfo.tmpId) { if (m.tmpId && m.tmpId < msgInfo.tmpId) {

2
im-web/src/store/chatStore.js

@ -555,7 +555,7 @@ export default defineStore('chatStore', {
continue; continue;
} }
if (msgInfo.tmpId == m.tmpId) { if (msgInfo.tmpId == m.tmpId) {
return idx; return m;
} }
// 如果id比要查询的消息小,说明没有这条消息 // 如果id比要查询的消息小,说明没有这条消息
if (m.tmpId && m.tmpId < msgInfo.tmpId) { if (m.tmpId && m.tmpId < msgInfo.tmpId) {

Loading…
Cancel
Save