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,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())