Remove disbanded communities from the browser
This commit is contained in:
parent
42e68d0d7f
commit
66bfcc9d9b
@ -619,6 +619,7 @@ public class CommunityManager extends MiniDbClientPlugin<CommunityMemberData>
|
|||||||
|
|
||||||
public void handleCommunityDisband(Integer id, String senderName)
|
public void handleCommunityDisband(Integer id, String senderName)
|
||||||
{
|
{
|
||||||
|
_browserCommunities.remove(id);
|
||||||
Community community = _loadedCommunities.get(id);
|
Community community = _loadedCommunities.get(id);
|
||||||
if (community == null)
|
if (community == null)
|
||||||
{
|
{
|
||||||
|
@ -15,8 +15,7 @@ public class CommunityBrowserButton extends CommunitiesGUIButton
|
|||||||
{
|
{
|
||||||
private ICommunity _community;
|
private ICommunity _community;
|
||||||
private Player _viewer;
|
private Player _viewer;
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
public CommunityBrowserButton(Player viewer, ICommunity community)
|
public CommunityBrowserButton(Player viewer, ICommunity community)
|
||||||
{
|
{
|
||||||
super(createButton(community));
|
super(createButton(community));
|
||||||
|
@ -24,7 +24,6 @@ public class CommunityBrowserPage extends CommunitiesGUIPage
|
|||||||
|
|
||||||
private int _page = 1;
|
private int _page = 1;
|
||||||
private boolean _loading = false;
|
private boolean _loading = false;
|
||||||
private boolean _update = false;
|
|
||||||
|
|
||||||
private List<Integer> _displaying = new ArrayList<>();
|
private List<Integer> _displaying = new ArrayList<>();
|
||||||
|
|
||||||
@ -40,7 +39,6 @@ public class CommunityBrowserPage extends CommunitiesGUIPage
|
|||||||
{
|
{
|
||||||
if (_loading)
|
if (_loading)
|
||||||
{
|
{
|
||||||
_update = true;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user