summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ephraim_roster.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/ephraim_roster.erl b/src/core/ephraim_roster.erl
index e9eb9f8..e0a1da6 100644
--- a/src/core/ephraim_roster.erl
+++ b/src/core/ephraim_roster.erl
@@ -146,10 +146,13 @@ handleRosterIQs(Roster, [_|Rest]) ->
handleRosterIQs(Roster, Rest).
--spec handleVCardIQ(dict(), #xmlel{}) -> dict().
+-spec handleVCardIQ(dict(), #xmlel{}|#xmlcdata{}) -> dict().
handleVCardIQ(Dict, Item=#xmlel{name=Key}) ->
Value = exmpp_xml:get_cdata(Item),
- dict:store(Key, Value, Dict).
+ dict:store(Key, Value, Dict);
+
+handleVCardIQ(Dict, #xmlcdata{}) ->
+ Dict.
-spec handleVCardIQs(dict(), [#xmlel{}]) -> dict().
handleVCardIQs(VCard, []) ->