Commit cdf2b6ff authored by Tom Evans's avatar Tom Evans

OF-473: Broadcast presence for new group members

When a user is added to a shared roster group, broadcast membership so
presence stanzas will be accepted
parent f37aa566
...@@ -159,6 +159,8 @@ public class Roster implements Cacheable, Externalizable { ...@@ -159,6 +159,8 @@ public class Roster implements Cacheable, Externalizable {
if (group.isUser(jid)) { if (group.isUser(jid)) {
item.addSharedGroup(group); item.addSharedGroup(group);
itemGroups.add(group); itemGroups.add(group);
item.setNickname(UserNameManager.getUserName(jid));
broadcast(item, true);
} else { } else {
item.addInvisibleSharedGroup(group); item.addInvisibleSharedGroup(group);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment