Commit bd112404 authored by Tom Evans's avatar Tom Evans

Merge pull request #358 from akrherz/of868

OF-868 update roster cache on userModified
parents e8360311 f4a122ec
......@@ -608,7 +608,18 @@ public class RosterManager extends BasicModule implements GroupEventListener, Us
@Override
public void userModified(User user, Map<String,Object> params) {
//Do nothing
if ("nameModified".equals(params.get("type"))) {
for (Group group : getSharedGroups(user.getUsername())) {
ArrayList<JID> groupUsers = new ArrayList<>();
groupUsers.addAll(group.getAdmins());
groupUsers.addAll(group.getMembers());
for (JID groupUser : groupUsers) {
rosterCache.remove(groupUser.getNode());
}
}
}
}
/**
......
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