Updated linphone + use new getHistoryMessageEvents method
This commit is contained in:
parent
cdec808f28
commit
e1b756cf32
2 changed files with 11 additions and 3 deletions
|
@ -283,7 +283,11 @@ public class GroupChatFragment extends Fragment implements ChatRoomListener, Con
|
|||
EventLog eventLog = (EventLog)obj;
|
||||
eventLog.deleteFromDatabase();
|
||||
}
|
||||
mEventsAdapter.refresh(mChatRoom.getHistoryEvents(0));
|
||||
if (mChatRoom.hasCapability(ChatRoomCapabilities.OneToOne.toInt())) {
|
||||
mEventsAdapter.refresh(mChatRoom.getHistoryMessageEvents(0));
|
||||
} else {
|
||||
mEventsAdapter.refresh(mChatRoom.getHistoryEvents(0));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -422,7 +426,11 @@ public class GroupChatFragment extends Fragment implements ChatRoomListener, Con
|
|||
|
||||
private void displayChatRoomHistory() {
|
||||
if (mChatRoom == null) return;
|
||||
mEventsAdapter = new ChatEventsAdapter(this, mSelectionHelper, mInflater, mChatRoom.getHistoryEvents(0), mParticipants);
|
||||
if (mChatRoom.hasCapability(ChatRoomCapabilities.OneToOne.toInt())) {
|
||||
mEventsAdapter = new ChatEventsAdapter(this, mSelectionHelper, mInflater, mChatRoom.getHistoryMessageEvents(0), mParticipants);
|
||||
} else {
|
||||
mEventsAdapter = new ChatEventsAdapter(this, mSelectionHelper, mInflater, mChatRoom.getHistoryEvents(0), mParticipants);
|
||||
}
|
||||
mSelectionHelper.setAdapter(mEventsAdapter);
|
||||
mChatEventsList.setAdapter(mEventsAdapter);
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 66a6499f56f4d87d03b70ffc5890643542540eac
|
||||
Subproject commit 107aa11e139df6b3ab76f18930e75b9129bcbad7
|
Loading…
Reference in a new issue