friendschat: remove user count after leaving chat channel

This commit is contained in:
Hydrox6
2021-02-28 00:52:27 +00:00
committed by Jordan Atwood
parent fcb1cd9b58
commit bd6c9b2f7a

View File

@@ -289,12 +289,18 @@ public class FriendsChatPlugin extends Plugin
{ {
chatTitleWidget.setText(TITLE + " (" + friendsChatManager.getCount() + "/100)"); chatTitleWidget.setText(TITLE + " (" + friendsChatManager.getCount() + "/100)");
} }
else if (config.recentChats() && chatList.getChildren() == null && !Strings.isNullOrEmpty(owner.getText())) else if (chatList.getChildren() == null && !Strings.isNullOrEmpty(owner.getText()))
{
if (config.recentChats())
{ {
chatTitleWidget.setText(RECENT_TITLE); chatTitleWidget.setText(RECENT_TITLE);
loadFriendsChats(); loadFriendsChats();
} }
else
{
chatTitleWidget.setText(TITLE);
}
}
} }
if (!config.showJoinLeave()) if (!config.showJoinLeave())