Merge pull request #195 from Iperity/master

Fix small bug in presence_based_delivery implementation
This commit is contained in:
Evgeny Khramtsov 2014-05-05 16:38:16 +04:00
commit 2723056fae
1 changed files with 1 additions and 1 deletions

View File

@ -4156,7 +4156,7 @@ presence_can_deliver({User, Server, Resource}, true) ->
({session, _, _ , _, undefined, _}, _Acc) -> false;
({session, _, {_, _, R}, _, _Priority, _}, _Acc) ->
case Resource of
[] -> true;
<<>> -> true;
R -> true;
_ -> false
end