Improved Contacts handling

This commit is contained in:
the-djmaze 2022-09-05 11:04:12 +02:00
parent bfe80dcacb
commit fe20741409
2 changed files with 24 additions and 17 deletions

View file

@ -279,7 +279,10 @@ export class ContactsPopupView extends AbstractViewPopup {
let count = 0,
list = [];
if (!iError && arrayLength(data.Result.List)) {
if (iError) {
// console.error(data);
alert(data?.ErrorMessage || getNotification(iError));
} else if (arrayLength(data.Result.List)) {
data.Result.List.forEach(item => {
item = ContactModel.reviveFromJson(item);
item && list.push(item);