mirror of
https://gitee.com/openharmony/applications_mms
synced 2025-02-16 22:58:11 +00:00
crash of touchStart and id
Signed-off-by: zhouhongli2023 <zhouhongli5@huawei.com>
This commit is contained in:
parent
c941024d57
commit
f6743ebe86
@ -1485,14 +1485,14 @@ export default class ConversationController {
|
||||
if (item.date.id == undefined || item.date.id == null) {
|
||||
return;
|
||||
}
|
||||
let tempDateId = item.date.id;
|
||||
let tempDateId = item.date?.id;
|
||||
if (item.week == undefined || item.week == null) {
|
||||
return;
|
||||
}
|
||||
if (item.week.id == undefined || item.week.id == null) {
|
||||
return;
|
||||
}
|
||||
let tempWeekId = item.week.id;
|
||||
let tempWeekId = item.week?.id;
|
||||
if (list.length > 0) {
|
||||
item.dateShow =
|
||||
(tempDateId != (list[list.length-1]).date.id)
|
||||
|
@ -594,6 +594,9 @@ export default class InfoMsgController {
|
||||
}
|
||||
this.itemTouchedIdx = index;
|
||||
let item = this.messageList[this.itemTouchedIdx];
|
||||
if (item == null || item == undefined) {
|
||||
return;
|
||||
}
|
||||
if (item.countOfUnread > 0) {
|
||||
this.operateBtnW = common.int.OPERATE_UNREAD_WIDTH;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user