mirror of
https://github.com/matrix-construct/construct
synced 2024-11-12 13:01:07 +01:00
ircd:Ⓜ️:typing: Create non-existing here before sending to user room for now.
This commit is contained in:
parent
592eb375f6
commit
8efeb1a76a
1 changed files with 9 additions and 1 deletions
|
@ -463,11 +463,19 @@ set_typing(const m::edu::m_typing &edu)
|
|||
at<"user_id"_>(edu)
|
||||
};
|
||||
|
||||
const m::user::room user_room
|
||||
const m::user user
|
||||
{
|
||||
user_id
|
||||
};
|
||||
|
||||
if(!exists(user))
|
||||
create(user);
|
||||
|
||||
const m::user::room user_room
|
||||
{
|
||||
user
|
||||
};
|
||||
|
||||
const auto &timeout
|
||||
{
|
||||
json::get<"timeout"_>(edu)?
|
||||
|
|
Loading…
Reference in a new issue