no message

This commit is contained in:
kuaifan 2025-03-11 17:40:29 +08:00
parent 3c49e96e02
commit 3b7bcbc14a
2 changed files with 5 additions and 2 deletions

View File

@ -1981,3 +1981,4 @@ API请求的URL路径
即将到期
创建任务
在消息中打开

View File

@ -879,6 +879,7 @@ export default {
msgChangeCache: {},
unreadOne: 0, // id
startMsgId: 0, // id
topPosLoad: 0, //
positionLoad: 0, //
positionShow: false, //
@ -1213,11 +1214,11 @@ export default {
return null
},
positionMsg({msgNew, dialogData, allMsgs}) {
positionMsg({msgNew, dialogData, allMsgs, startMsgId}) {
const {unread, unread_one, mention, mention_ids} = dialogData
const not = unread - msgNew
const array = []
if (unread_one) {
if (unread_one && unread_one < startMsgId) {
array.push({
type: 'unread',
label: this.$L(`未读消息${not}`),
@ -3025,6 +3026,7 @@ export default {
return
}
const key = this.scrollDirection === 'down' ? 'next_id' : 'prev_id';
this.startMsgId = this.allMsgs[range.start]?.id || 0;
for (let i = range.start; i <= range.end; i++) {
if (!this.allMsgs[i]) {
continue