Bug #272
Opened chats dialog shows every online contact in roster and in random order
Description
I just started using Beem on Friday, but quickly ran into an issue with the Opened chats dialog. I have noticed that it shows every online contact from my roster, whether or not I have sent or received a chat from them. After adding some debug code I was able to determine that the only messages received from my contacts were status changes. The contacts are also listed in random order, which doesn't seem ideal.
I have attached a patch which adds message count tracking for Normal, Chat, Group Chat and Error message types to the ChatAdapter class. With those individual counts I was able to update getOpenedChatList in the BeemChatManager class to populate the opened chats dialog with contacts that have sent/received Chat or Group Chat messages.
The patch also adds case-insensitive sorting to the opened chats list.
Files