mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Include shared groups also when contact is is personal roster (#1585)
This commit is contained in:
parent
7e2380ab0c
commit
ee849338dd
@ -166,10 +166,12 @@ get_user_roster(Items, US) ->
|
||||
case dict:find(US1,
|
||||
SRUsers1)
|
||||
of
|
||||
{ok, _GroupNames} ->
|
||||
{ok, GroupNames} ->
|
||||
{Item#roster{subscription
|
||||
=
|
||||
both,
|
||||
groups =
|
||||
Item#roster.groups ++ GroupNames,
|
||||
ask =
|
||||
none},
|
||||
dict:erase(US1,
|
||||
|
@ -113,10 +113,12 @@ get_user_roster(Items, {U, S} = US) ->
|
||||
case dict:find(US1,
|
||||
SRUsers1)
|
||||
of
|
||||
{ok, _GroupNames} ->
|
||||
{ok, GroupNames} ->
|
||||
{Item#roster{subscription
|
||||
=
|
||||
both,
|
||||
groups =
|
||||
Item#roster.groups ++ GroupNames,
|
||||
ask =
|
||||
none},
|
||||
dict:erase(US1,
|
||||
|
Loading…
Reference in New Issue
Block a user