Commit 844f1b95 authored by Matthieu Tanon's avatar Matthieu Tanon

Add new history filter for one to one chatrooms

parent 9d0fa653
......@@ -159,6 +159,7 @@ namespace {
constexpr char ConferenceChatMessageFilter[] = "5";
constexpr char ConferenceInfoNoDeviceFilter[] = "1,2,6,7,8,9,12,13";
constexpr char ConferenceInfoFilter[] = "1,2,6,7,8,9,10,11,12";
constexpr char ConferenceChatMessageSecurityFilter[] = "5,13";
#else
constexpr auto ConferenceCallFilter = SqlEventFilterBuilder<
EventLog::Type::ConferenceCallStart,
......@@ -182,13 +183,18 @@ namespace {
EventLog::Type::ConferenceParticipantDeviceAdded,
EventLog::Type::ConferenceParticipantDeviceRemoved
>::get();
constexpr auto ConferenceChatMessageSecurityFilter = ConferenceChatMessageFilter + "," + SqlEventFilterBuilder<
EventLog::Type::ConferenceSecurityEvent
>::get();
#endif // ifdef _WIN32
constexpr EnumToSql<MainDb::Filter> EventFilterToSql[] = {
{ MainDb::ConferenceCallFilter, ConferenceCallFilter },
{ MainDb::ConferenceChatMessageFilter, ConferenceChatMessageFilter },
{ MainDb::ConferenceInfoNoDeviceFilter, ConferenceInfoNoDeviceFilter },
{ MainDb::ConferenceInfoFilter, ConferenceInfoFilter }
{ MainDb::ConferenceInfoFilter, ConferenceInfoFilter },
{ MainDb::ConferenceChatMessageSecurityFilter, ConferenceChatMessageSecurityFilter }
};
}
......
......@@ -55,7 +55,8 @@ public:
ConferenceCallFilter = 0x1,
ConferenceChatMessageFilter = 0x2,
ConferenceInfoFilter = 0x4,
ConferenceInfoNoDeviceFilter = 0x8
ConferenceInfoNoDeviceFilter = 0x8,
ConferenceChatMessageSecurityFilter = 0x10
};
typedef EnumMask<Filter> FilterMask;
......
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