Compare commits

..

No commits in common. "e2e540bc35355b4fe2897249584e2bbe6f477112" and "7a6823224473de992950cffafbdb9bf7e2745f8d" have entirely different histories.

3 changed files with 2 additions and 11 deletions

View File

@ -274,8 +274,7 @@ class Talk extends Base {
useTalkStore().updateMessage({
index_name: this.getIndexName(),
msg_text: this.getTalkText(),
updated_at: parseTime(new Date()),
isCurrSender: this.isCurrSender()
updated_at: parseTime(new Date())
})
//收到新消息时,同时判断是否有人@我
if (this.resource.msg_type === 1 && this.resource?.extra?.mentions?.length > 0) {

View File

@ -103,10 +103,7 @@ export const useTalkStore = defineStore('talk', {
const item = this.items.find((item) => item.index_name === params.index_name)
if (item) {
if (!params?.isCurrSender) {
//如果消息不是自己发的,才更新未读数量
item.unread_num++
}
item.unread_num++
item.msg_text = params.msg_text
item.updated_at = params.updated_at

View File

@ -602,11 +602,6 @@ const onTabTalk = (item: ISession, follow = false) => {
console.log('item.index_name === indexName.value', item.index_name === indexName.value)
if (item.index_name === indexName.value) return
if (dialogueStore.isOpenMultiSelect) {
//
dialogueStore.closeMultiSelect()
}
searchKeyword.value = ''
dialogueStore.isManualSwitch = true