Try to improve performances
This commit is contained in:
parent
21dc3402f4
commit
f78c42b9b0
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,7 @@ public final class LinphoneUtils {
|
||||||
ArrayList<ChatRoom> newRooms = new ArrayList<>();
|
ArrayList<ChatRoom> newRooms = new ArrayList<>();
|
||||||
for (ChatRoom room : rooms) {
|
for (ChatRoom room : rooms) {
|
||||||
if (room.hasCapability(ChatRoomCapabilities.OneToOne.toInt())
|
if (room.hasCapability(ChatRoomCapabilities.OneToOne.toInt())
|
||||||
&& room.getLastMessageInHistory() == null) {
|
&& room.getHistorySize() == 0) {
|
||||||
// Hide 1-1 chat rooms without messages
|
// Hide 1-1 chat rooms without messages
|
||||||
} else {
|
} else {
|
||||||
newRooms.add(room);
|
newRooms.add(room);
|
||||||
|
|
Loading…
Reference in a new issue