25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

Send presence from shared roster contacts to new logged user (EJAB-1412)

This commit is contained in:
Badlop 2011-07-28 16:02:36 +02:00
parent cd7beb9492
commit 4fcbd5894e

View File

@ -333,7 +333,7 @@ get_subscription_lists({F, T}, User, Server)
fun(Group) ->
get_group_users(LServer, Group)
end, DisplayedGroups)),
SRJIDs = [{U1, S1, undefined} || {U1, S1} <- SRUsers],
SRJIDs = [{list_to_binary(U1), list_to_binary(S1), undefined} || {U1, S1} <- SRUsers],
{lists:usort(SRJIDs ++ F), lists:usort(SRJIDs ++ T)}
catch
_ ->