mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 21:58:08 +00:00
fix(ChatRoom): return chat messages in chat room history
This commit is contained in:
parent
e12f146b84
commit
c300e10f14
1 changed files with 11 additions and 2 deletions
|
|
@ -328,11 +328,20 @@ list<shared_ptr<EventLog>> ChatRoom::getMessageHistoryRange (int begin, int end)
|
|||
}
|
||||
|
||||
list<shared_ptr<EventLog>> ChatRoom::getHistory (int nLast) const {
|
||||
return getCore()->getPrivate()->mainDb->getHistory(getChatRoomId(), nLast, MainDb::Filter::ConferenceInfoNoDeviceFilter);
|
||||
return getCore()->getPrivate()->mainDb->getHistory(
|
||||
getChatRoomId(),
|
||||
nLast,
|
||||
MainDb::FilterMask({ MainDb::Filter::ConferenceChatMessageFilter, MainDb::Filter::ConferenceInfoNoDeviceFilter })
|
||||
);
|
||||
}
|
||||
|
||||
list<shared_ptr<EventLog>> ChatRoom::getHistoryRange (int begin, int end) const {
|
||||
return getCore()->getPrivate()->mainDb->getHistoryRange(getChatRoomId(), begin, end, MainDb::Filter::ConferenceInfoNoDeviceFilter);
|
||||
return getCore()->getPrivate()->mainDb->getHistoryRange(
|
||||
getChatRoomId(),
|
||||
begin,
|
||||
end,
|
||||
MainDb::FilterMask({ MainDb::Filter::ConferenceChatMessageFilter, MainDb::Filter::ConferenceInfoNoDeviceFilter })
|
||||
);
|
||||
}
|
||||
|
||||
int ChatRoom::getHistorySize () const {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue