mirror of
https://gitee.com/openharmony/applications_mms
synced 2024-11-22 23:29:41 +00:00
!152 jscrash of nameClick/addContact/touchMove on master
Merge pull request !152 from zhouhongli2023/master
This commit is contained in:
commit
102d4b088a
@ -341,7 +341,7 @@ export default class ConversationListController {
|
||||
}
|
||||
let item = this.messageList[this.itemTouchedIdx];
|
||||
let transX = offsetX;
|
||||
if (item.isDelShow) {
|
||||
if (item && item.isDelShow) {
|
||||
if (event.offsetX - this.operateBtnW <= 0) {
|
||||
transX = event.offsetX - this.operateBtnW
|
||||
} else {
|
||||
|
@ -267,6 +267,10 @@ export default class ReceiveController {
|
||||
if (this.checkSingle()) {
|
||||
return;
|
||||
}
|
||||
if (curItem == undefined) {
|
||||
HiLog.e(TAG, 'addContact contact is null');
|
||||
return;
|
||||
}
|
||||
if (curItem != undefined && curItem.telephone != undefined && curItem.telephone.toString().trim() == '') {
|
||||
prompt.showToast({
|
||||
// Invalid Recipient
|
||||
@ -352,7 +356,7 @@ export default class ReceiveController {
|
||||
if (this.selectContacts[idx] == null || this.selectContacts[idx] == undefined) {
|
||||
return;
|
||||
}
|
||||
if (this.selectContacts[idx].select) {
|
||||
if (this.selectContacts[idx].select && this.selectContacts[idx].select != undefined) {
|
||||
let item = this.selectContacts.splice(idx, 1);
|
||||
// Deleted items are added to the collection to be searched.
|
||||
this.contactsTemp.push(item);
|
||||
|
Loading…
Reference in New Issue
Block a user