Use getHistorySize instead of getHistory().length
This commit is contained in:
parent
20585afbc5
commit
8496c84a66
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ public class ChatStorage {
|
||||||
List<LinphoneChatRoom> rooms = new ArrayList<LinphoneChatRoom>();
|
List<LinphoneChatRoom> rooms = new ArrayList<LinphoneChatRoom>();
|
||||||
|
|
||||||
for (LinphoneChatRoom chatroom : chats) {
|
for (LinphoneChatRoom chatroom : chats) {
|
||||||
if (chatroom.getHistory(1).length > 0) {
|
if (chatroom.getHistorySize() > 0) {
|
||||||
rooms.add(chatroom);
|
rooms.add(chatroom);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue