Merge pull request #13285 from Hydrox6/fc-clear-count

friendschat: remove user count after leaving chat channel
This commit is contained in:
Jordan
2021-02-28 19:40:35 +00:00
committed by GitHub

View File

@@ -289,11 +289,17 @@ 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()))
{ {
chatTitleWidget.setText(RECENT_TITLE); if (config.recentChats())
{
loadFriendsChats(); chatTitleWidget.setText(RECENT_TITLE);
loadFriendsChats();
}
else
{
chatTitleWidget.setText(TITLE);
}
} }
} }