Commit 5460eefe authored by Erwan Croze's avatar Erwan Croze 👋🏻

Use new filter for OneToOne chat room

parent 844f1b95
......@@ -375,6 +375,29 @@ void ClientGroupChatRoom::deleteFromDb () {
d->chatRoomListener->onChatRoomDeleteRequested(getSharedFromThis());
}
list<shared_ptr<EventLog>> ClientGroupChatRoom::getHistory (int nLast) const {
L_D();
return getCore()->getPrivate()->mainDb->getHistory(
getConferenceId(),
nLast,
(d->capabilities & Capabilities::OneToOne) ?
MainDb::Filter::ConferenceChatMessageSecurityFilter :
MainDb::FilterMask({MainDb::Filter::ConferenceChatMessageFilter, MainDb::Filter::ConferenceInfoNoDeviceFilter})
);
}
list<shared_ptr<EventLog>> ClientGroupChatRoom::getHistoryRange (int begin, int end) const {
L_D();
return getCore()->getPrivate()->mainDb->getHistoryRange(
getConferenceId(),
begin,
end,
(d->capabilities & Capabilities::OneToOne) ?
MainDb::Filter::ConferenceChatMessageSecurityFilter :
MainDb::FilterMask({MainDb::Filter::ConferenceChatMessageFilter, MainDb::Filter::ConferenceInfoNoDeviceFilter})
);
}
void ClientGroupChatRoom::addParticipant (const IdentityAddress &addr, const CallSessionParams *params, bool hasMedia) {
L_D();
......
......@@ -80,6 +80,9 @@ public:
void deleteFromDb () override;
std::list<std::shared_ptr<EventLog>> getHistory (int nLast) const override;
std::list<std::shared_ptr<EventLog>> getHistoryRange (int begin, int end) const override;
void addParticipant (const IdentityAddress &addr, const CallSessionParams *params, bool hasMedia) override;
void addParticipants (const std::list<IdentityAddress> &addresses, const CallSessionParams *params, bool hasMedia) override;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment