Emit ChatEphemeralTimerModified when user changes the timer

This commit is contained in:
Alexander Krotov
2020-07-10 02:52:45 +03:00
parent 2071478e11
commit e5d5009d6a
2 changed files with 5 additions and 5 deletions

View File

@@ -674,11 +674,6 @@ async fn add_parts(
) )
.await; .await;
} }
context.emit_event(Event::ChatEphemeralTimerModified {
chat_id: *chat_id,
timer: timer.to_u32(),
});
} }
Err(err) => { Err(err) => {
warn!( warn!(

View File

@@ -176,6 +176,11 @@ impl ChatId {
paramsv![timer, self], paramsv![timer, self],
) )
.await?; .await?;
context.emit_event(Event::ChatEphemeralTimerModified {
chat_id: self,
timer: timer.to_u32(),
});
Ok(()) Ok(())
} }