Go to the documentation of this file.
12 struct RoomEventFilter : EventFilter
31 immer::array<std::string>
rooms;
46 if (! jo.is_object()) { jo = json::object(); }
63 if (jo.contains(
"lazy_load_members"s)) {
64 result.lazyLoadMembers = jo.at(
"lazy_load_members"s);
66 if (jo.contains(
"include_redundant_members"s)) {
67 result.includeRedundantMembers = jo.at(
"include_redundant_members"s);
69 if (jo.contains(
"not_rooms"s)) {
70 result.notRooms = jo.at(
"not_rooms"s);
72 if (jo.contains(
"rooms"s)) {
73 result.rooms = jo.at(
"rooms"s);
75 if (jo.contains(
"contains_url"s)) {
76 result.containsUrl = jo.at(
"contains_url"s);
immer::array< std::string > rooms
A list of room IDs to include. If this list is absent then all rooms are included.
Definition: room_event_filter.hpp:35
std::optional< bool > includeRedundantMembers
If true, sends all membership events for all events, even if they have already been sent to the clien...
Definition: room_event_filter.hpp:29
std::optional< bool > lazyLoadMembers
If true, enables lazy-loading of membership events.
Definition: room_event_filter.hpp:22
Definition: location.hpp:26
Definition: location.hpp:10
std::optional< bool > containsUrl
If true, includes only events with a url key in their content. If false, excludes those events....
Definition: room_event_filter.hpp:38
nlohmann::json json
Definition: jsonwrap.hpp:20
Definition: location.hpp:10
Definition: room_event_filter.hpp:14
void addToJsonIfNeeded(json &j, std::string name, T &&arg)
Definition: types.hpp:80
static void to_json(json &jo, const RoomEventFilter &pod)
Definition: room_event_filter.hpp:44
static void from_json(const json &jo, RoomEventFilter &result)
Definition: room_event_filter.hpp:60
immer::array< std::string > notRooms
A list of room IDs to exclude. If this list is absent then no rooms are excluded. A matching room wil...
Definition: room_event_filter.hpp:32
Definition: event_filter.hpp:14