mirror of
https://gitee.com/openharmony/applications_mms
synced 2024-11-23 07:39:46 +00:00
!159 crash of touchStart and id
Merge pull request !159 from zhouhongli2023/OpenHarmony-5.0.0-Release
This commit is contained in:
commit
2e8e01efee
@ -1490,14 +1490,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…
Reference in New Issue
Block a user