diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-07-28 02:54:51 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2010-07-28 02:54:51 +0200 |
commit | 38a9cf9209e8960e93631d757a3b6e974222307a (patch) | |
tree | f8297ebea0ab8f4c80138dc360bb7878cd54de6a /src/core | |
parent | 00e8a7d9d07e87a31e3086c2e2e3f71107cbafdb (diff) | |
download | ephraim-38a9cf9209e8960e93631d757a3b6e974222307a.tar ephraim-38a9cf9209e8960e93631d757a3b6e974222307a.zip |
Roster groups are now displayed correctly.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/ephraim_roster.erl | 7 |
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, []) -> |