mirror of
https://github.com/matrix-construct/construct
synced 2024-05-29 00:03:45 +02:00
modules/m_typing: More error reporting around typing-state update.
This commit is contained in:
parent
1c01b21720
commit
f3d22ba98b
|
@ -386,6 +386,7 @@ ircd::m::typing::for_each(const m::typing::closure_bool &closure)
|
|||
|
||||
bool
|
||||
update_state(const m::typing &object)
|
||||
try
|
||||
{
|
||||
const auto &user_id
|
||||
{
|
||||
|
@ -453,6 +454,16 @@ update_state(const m::typing &object)
|
|||
|
||||
return transmit;
|
||||
}
|
||||
catch(const std::exception &e)
|
||||
{
|
||||
log::error
|
||||
{
|
||||
typing_log, "Failed to update state :%s",
|
||||
e.what(),
|
||||
};
|
||||
|
||||
throw;
|
||||
}
|
||||
|
||||
system_point
|
||||
calc_timesout(milliseconds timeout)
|
||||
|
|
Loading…
Reference in a new issue