fix(addressbook): Fix asynchronous selection of contacts - cards are not added as they're not yet loaded.

This commit is contained in:
smizrahi
2023-05-10 10:32:46 +02:00
parent 807622dd53
commit 1df2586745

View File

@@ -414,7 +414,8 @@
recipients.push(card.$shortFormat());
}
}
else if (selectedFolder.$loadCard(card)) {
else {
selectedFolder.$loadCard(card);
promises.push(selectedFolder.$futureHeadersData.then(function() {
var i = selectedFolder.idsMap[card.id];
if (angular.isDefined(i)) {