mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
modules/console: Add device_id to user tokens list cmd.
This commit is contained in:
parent
d052249573
commit
08525e95d0
1 changed files with 9 additions and 2 deletions
|
@ -11581,14 +11581,21 @@ console_cmd__user__tokens(opt &out, const string_view &line)
|
|||
m::event_id(std::nothrow, event_idx)
|
||||
};
|
||||
|
||||
const auto device_id
|
||||
{
|
||||
m::user::tokens::device(token)
|
||||
};
|
||||
|
||||
out
|
||||
<< token
|
||||
<< " "
|
||||
<< device_id
|
||||
<< " "
|
||||
<< ost
|
||||
<< " "
|
||||
<< pretty(now - ost) << " ago"
|
||||
<< " "
|
||||
<< string_view{event_id}
|
||||
<< " "
|
||||
<< pretty(now - ost) << " ago"
|
||||
<< std::endl;
|
||||
return true;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue