Compare commits

..

No commits in common. "32aa5f7d8107084c635abb1c3206ced515cd9352" and "78009bc5e7d537ef3773ee7311bccc310247ca14" have entirely different histories.

3 changed files with 2 additions and 11 deletions

View File

@ -280,8 +280,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