From 38a9cf9209e8960e93631d757a3b6e974222307a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Wed, 28 Jul 2010 02:54:51 +0200 Subject: Roster groups are now displayed correctly. --- src/core/ephraim_roster.erl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/core/ephraim_roster.erl') 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, []) -> -- cgit v1.2.3