summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2010-06-23 04:09:55 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2010-06-23 04:09:55 +0200
commit04a0f989a71a83114fe1f58b2ebe1af2f56cb87b (patch)
tree9665036d8cef3d04832d41f04ce3cc6f3dec93f0 /src/core
parenta20742c57995b3dc4cc264585ab3b79ca142261b (diff)
downloadephraim-04a0f989a71a83114fe1f58b2ebe1af2f56cb87b.tar
ephraim-04a0f989a71a83114fe1f58b2ebe1af2f56cb87b.zip
Show presence icons
Diffstat (limited to 'src/core')
-rw-r--r--src/core/ephraim_roster.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/ephraim_roster.erl b/src/core/ephraim_roster.erl
index 9cc91f8..bfc40b1 100644
--- a/src/core/ephraim_roster.erl
+++ b/src/core/ephraim_roster.erl
@@ -40,6 +40,8 @@ updateResource(Roster, JID, Priority, Type, Show, Status) ->
available ->
ResourceEntry = #resource_entry{priority=Priority,show=Show,status=Status},
dict:store(Resource, ResourceEntry, RosterEntry#roster_entry.resources);
+ unavailable ->
+ dict:erase(Resource, RosterEntry#roster_entry.resources);
_ ->
RosterEntry#roster_entry.resources
end,