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

modules/client/devices: Add de facto user_id to response.

This commit is contained in:
Jason Volk 2023-04-21 17:32:03 -07:00
parent 78d6e4ce03
commit 9ce44aadd5

View file

@ -274,6 +274,11 @@ _get_device(json::stack::object &obj,
obj, "device_id", device_id
};
json::stack::member
{
obj, "user_id", devices.user.user_id
};
devices.get(std::nothrow, device_id, "display_name", [&obj]
(const auto &, const string_view &value)
{