mirror of
https://github.com/matrix-construct/construct
synced 2024-11-28 17:52:54 +01:00
modules/client/devices: Add de facto user_id to response.
This commit is contained in:
parent
78d6e4ce03
commit
9ce44aadd5
1 changed files with 5 additions and 0 deletions
|
@ -274,6 +274,11 @@ _get_device(json::stack::object &obj,
|
||||||
obj, "device_id", device_id
|
obj, "device_id", device_id
|
||||||
};
|
};
|
||||||
|
|
||||||
|
json::stack::member
|
||||||
|
{
|
||||||
|
obj, "user_id", devices.user.user_id
|
||||||
|
};
|
||||||
|
|
||||||
devices.get(std::nothrow, device_id, "display_name", [&obj]
|
devices.get(std::nothrow, device_id, "display_name", [&obj]
|
||||||
(const auto &, const string_view &value)
|
(const auto &, const string_view &value)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue