mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 18:06:35 +03:00
Emit ChatEphemeralTimerModified when user changes the timer
This commit is contained in:
@@ -674,11 +674,6 @@ async fn add_parts(
|
||||
)
|
||||
.await;
|
||||
}
|
||||
|
||||
context.emit_event(Event::ChatEphemeralTimerModified {
|
||||
chat_id: *chat_id,
|
||||
timer: timer.to_u32(),
|
||||
});
|
||||
}
|
||||
Err(err) => {
|
||||
warn!(
|
||||
|
||||
@@ -176,6 +176,11 @@ impl ChatId {
|
||||
paramsv![timer, self],
|
||||
)
|
||||
.await?;
|
||||
|
||||
context.emit_event(Event::ChatEphemeralTimerModified {
|
||||
chat_id: self,
|
||||
timer: timer.to_u32(),
|
||||
});
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user