Skip to content

Commit

Permalink
fix(addressbook): Fix asynchronous selection of contacts - cards are …
Browse files Browse the repository at this point in the history
…not added as they're not yet loaded.
  • Loading branch information
WoodySlum committed May 10, 2023
1 parent 807622d commit 1df2586
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion UI/WebServerResources/js/Contacts/AddressBookController.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 1df2586

Please sign in to comment.