0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 00:02:34 +01:00

ircd:Ⓜ️:user::devices: Ensure some stream_id value is sent with the device list update.

This commit is contained in:
Jason Volk 2020-04-16 14:34:38 -07:00
parent d475d86be7
commit 7e44e524d2

View file

@ -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;