diff options
Diffstat (limited to 'Swiften/VCards/VCardManager.cpp')
| -rw-r--r-- | Swiften/VCards/VCardManager.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Swiften/VCards/VCardManager.cpp b/Swiften/VCards/VCardManager.cpp index 95b96fa..9423702 100644 --- a/Swiften/VCards/VCardManager.cpp +++ b/Swiften/VCards/VCardManager.cpp | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2016 Isode Limited. | 2 | * Copyright (c) 2010-2018 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| @@ -50,10 +50,9 @@ void VCardManager::requestOwnVCard() { | |||
| 50 | requestVCard(JID()); | 50 | requestVCard(JID()); |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | |||
| 54 | void VCardManager::handleVCardReceived(const JID& actualJID, VCard::ref vcard, ErrorPayload::ref error) { | 53 | void VCardManager::handleVCardReceived(const JID& actualJID, VCard::ref vcard, ErrorPayload::ref error) { |
| 55 | requestedVCards.erase(actualJID); | 54 | requestedVCards.erase(actualJID); |
| 56 | if (!error) { | 55 | if (!error || (error && error->getCondition() == ErrorPayload::ItemNotFound)) { |
| 57 | if (!vcard) { | 56 | if (!vcard) { |
| 58 | vcard = VCard::ref(new VCard()); | 57 | vcard = VCard::ref(new VCard()); |
| 59 | } | 58 | } |
Swift