Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
c300e10f
Commit
c300e10f
authored
Feb 19, 2018
by
Ronan
Browse files
fix(ChatRoom): return chat messages in chat room history
parent
e12f146b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
src/chat/chat-room/chat-room.cpp
src/chat/chat-room/chat-room.cpp
+11
-2
No files found.
src/chat/chat-room/chat-room.cpp
View file @
c300e10f
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment