mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
modules/client/rooms/messages: Select default event keys for now.
This commit is contained in:
parent
ff4e20d948
commit
89afac86a2
1 changed files with 20 additions and 1 deletions
|
@ -29,6 +29,25 @@ max_filter_miss
|
||||||
{ "default", 2048L },
|
{ "default", 2048L },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static const m::event::fetch::opts
|
||||||
|
default_fetch_opts
|
||||||
|
{
|
||||||
|
m::event::keys::include
|
||||||
|
{
|
||||||
|
"content",
|
||||||
|
"depth",
|
||||||
|
"event_id",
|
||||||
|
"membership",
|
||||||
|
"origin_server_ts",
|
||||||
|
"prev_events",
|
||||||
|
"redacts",
|
||||||
|
"room_id",
|
||||||
|
"sender",
|
||||||
|
"state_key",
|
||||||
|
"type",
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
resource::response
|
resource::response
|
||||||
get__messages(client &client,
|
get__messages(client &client,
|
||||||
const resource::request &request,
|
const resource::request &request,
|
||||||
|
@ -74,7 +93,7 @@ get__messages(client &client,
|
||||||
|
|
||||||
m::room::messages it
|
m::room::messages it
|
||||||
{
|
{
|
||||||
room, page.from
|
room, page.from, &default_fetch_opts
|
||||||
};
|
};
|
||||||
|
|
||||||
const unique_buffer<mutable_buffer> buf
|
const unique_buffer<mutable_buffer> buf
|
||||||
|
|
Loading…
Reference in a new issue