Make join request name updating redis-based
This commit is contained in:
parent
56ecab1985
commit
e5aaa555b7
@ -157,6 +157,15 @@ public class CommunityManager extends MiniDbClientPlugin<CommunityMemberData>
|
||||
});
|
||||
}
|
||||
|
||||
public void updateAllJoinRequests(UUID uuid, String name)
|
||||
{
|
||||
_loadedCommunities.values().stream().filter(community -> community.getJoinRequests().containsKey(uuid) && !community.getJoinRequests().get(uuid).Name.equalsIgnoreCase(name)).forEach(community ->
|
||||
{
|
||||
community.getJoinRequests().get(uuid).update(name);
|
||||
UtilServer.CallEvent(new CommunityJoinRequestsUpdateEvent(community));
|
||||
});
|
||||
}
|
||||
|
||||
private void cycleBrowser()
|
||||
{
|
||||
if (_cycling)
|
||||
|
Loading…
Reference in New Issue
Block a user