Updated liblinphone + improved message reading from database
This commit is contained in:
parent
84670ba428
commit
ee25db403c
2 changed files with 7 additions and 3 deletions
|
@ -281,8 +281,12 @@ public class ChatStorage {
|
|||
c.close();
|
||||
} else {
|
||||
LinphoneChatRoom room = LinphoneManager.getLc().createChatRoom(correspondent);
|
||||
for (LinphoneChatMessage message : room.getHistory()) {
|
||||
ChatMessage chatMessage = new ChatMessage(message.hashCode(), message.getText(), null, String.valueOf(message.getTime()), true, 0, true);
|
||||
LinphoneChatMessage[] history = room.getHistory();
|
||||
for (int i = 0; i < history.length; i++) {
|
||||
LinphoneChatMessage message = history[i];
|
||||
ChatMessage chatMessage = new ChatMessage(i+1, message.getText(), null,
|
||||
String.valueOf(message.getTime()), !message.isOutgoing(),
|
||||
message.getStatus().toInt(), message.isRead());
|
||||
chatMessage.setUrl(message.getExternalBodyUrl());
|
||||
chatMessages.add(chatMessage);
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 389922acce2412e6e4f57a74d3e7ea41e8e58771
|
||||
Subproject commit 952adab4f85dec18fbe980296c2c5462def1fc92
|
Loading…
Reference in a new issue