mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Improved Contacts handling
This commit is contained in:
parent
bfe80dcacb
commit
fe20741409
2 changed files with 24 additions and 17 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue