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