mirror of
https://github.com/matrix-construct/construct
synced 2024-12-25 15:04:10 +01:00
ircd:Ⓜ️:user::devices: Ensure some stream_id value is sent with the device list update.
This commit is contained in:
parent
d475d86be7
commit
7e44e524d2
1 changed files with 10 additions and 2 deletions
|
@ -15,11 +15,19 @@ try
|
|||
assert(content.has("user_id"));
|
||||
assert(content.has("device_id"));
|
||||
|
||||
// Triggers a devices request from the remote; also see
|
||||
// modules/federation/user_devices.cc
|
||||
const long &stream_id
|
||||
{
|
||||
1L
|
||||
};
|
||||
|
||||
json::iov event;
|
||||
const json::iov::push push[]
|
||||
{
|
||||
{ event, { "type", "m.device_list_update" } },
|
||||
{ event, { "sender", content.at("user_id") } },
|
||||
{ event, { "type", "m.device_list_update" } },
|
||||
{ event, { "sender", content.at("user_id") } },
|
||||
{ content, { "stream_id", stream_id } },
|
||||
};
|
||||
|
||||
m::vm::copts opts;
|
||||
|
|
Loading…
Reference in a new issue