mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 23:06:32 +03:00
Emit ChatEphemeralTimerModified when user changes the timer
This commit is contained in:
@@ -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!(
|
||||||
|
|||||||
@@ -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(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user