0
0
Fork 0
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:
Jason Volk 2020-03-25 18:30:31 -07:00
parent 592eb375f6
commit 8efeb1a76a

View file

@ -463,11 +463,19 @@ set_typing(const m::edu::m_typing &edu)
at<"user_id"_>(edu) at<"user_id"_>(edu)
}; };
const m::user::room user_room const m::user user
{ {
user_id user_id
}; };
if(!exists(user))
create(user);
const m::user::room user_room
{
user
};
const auto &timeout const auto &timeout
{ {
json::get<"timeout"_>(edu)? json::get<"timeout"_>(edu)?