From da01f25822df8888597d54807210f8f22dc31a6a Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Fri, 9 Aug 2013 17:07:50 +0200 Subject: [PATCH] Updated liblinphone + can fetch conversations from liblinphone chat storage (not finished yet) --- src/org/linphone/ChatStorage.java | 5 ++++- submodules/linphone | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/org/linphone/ChatStorage.java b/src/org/linphone/ChatStorage.java index 11b0eb222..faaed15fb 100644 --- a/src/org/linphone/ChatStorage.java +++ b/src/org/linphone/ChatStorage.java @@ -328,7 +328,10 @@ public class ChatStorage { ArrayList chatList = new ArrayList(); if (useNativeAPI) { - //TODO + LinphoneChatRoom[] chats = LinphoneManager.getLc().getChatRooms(); + for (LinphoneChatRoom chatroom : chats) { + chatList.add(chatroom.getPeerAddress().asStringUriOnly()); + } } else { Cursor c = db.query(TABLE_NAME, null, null, null, "remoteContact", null, "id DESC"); while (c != null && c.moveToNext()) { diff --git a/submodules/linphone b/submodules/linphone index 952adab4f..1ccf89e4f 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit 952adab4f85dec18fbe980296c2c5462def1fc92 +Subproject commit 1ccf89e4fbd6618a9d4a77b54d62c1ce8bb4fa0d