mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Made messages waiting rooms not capable of becoming stale.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@4928 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -1134,7 +1134,9 @@ public class ChatContainer extends SparkTabbedPane implements MessageListener, C
|
||||
LocalPreferences pref = SettingsManager.getLocalPreferences();
|
||||
int timeoutMinutes = pref.getChatLengthDefaultTimeout();
|
||||
|
||||
if (timeoutMinutes <= minutes) {
|
||||
int unreadCount = chatRoom.getUnreadMessageCount();
|
||||
|
||||
if (timeoutMinutes <= minutes && unreadCount == 0) {
|
||||
staleRooms.add(chatRoom);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user