mirror of
https://github.com/openharmony/applications_mms.git
synced 2026-07-01 21:04:41 -04:00
!93 jscrash问题汇总--master
Merge pull request !93 from zhouhongli2023/master
This commit is contained in:
@@ -53,6 +53,9 @@ export default class MainAbility extends Ability {
|
||||
|
||||
onDestroy() {
|
||||
HiLog.i(TAG, 'Ability onDestroy');
|
||||
if (globalThis.DataWorker == null || globalThis.DataWorker == undefined) {
|
||||
return;
|
||||
}
|
||||
globalThis.DataWorker.close();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -757,6 +757,9 @@ export default class ConversationListController {
|
||||
}
|
||||
// If multiple options are selected, the system responds to CheckBox.
|
||||
if (this.isMultipleSelectState) {
|
||||
if (this.messageList[index] == null || this.messageList[index] == undefined) {
|
||||
return;
|
||||
}
|
||||
this.messageList[index].isCbChecked = !this.messageList[index].isCbChecked;
|
||||
this.setConversationCheckAll(common.int.CHECKBOX_SELECT_UNKNOWN);
|
||||
return;
|
||||
|
||||
@@ -270,6 +270,9 @@ export default class ReceiveController {
|
||||
}
|
||||
this.selectContacts.push(curItem);
|
||||
this.contactsTemp = this.contactsTemp.filter((item) => {
|
||||
if (item.telephone == undefined || curItem.telephone == undefined) {
|
||||
return;
|
||||
}
|
||||
return item.telephone != curItem.telephone
|
||||
});
|
||||
this.contacts.splice(index, 1);
|
||||
|
||||
Reference in New Issue
Block a user