mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 14:56:33 +03:00
Add info message when autodelete timer is changed
This commit is contained in:
@@ -219,6 +219,13 @@ pub fn dc_receive_imf(
|
||||
if chat::get_autodelete_timer(context, chat_id) != timer {
|
||||
match chat::set_autodelete_timer(context, chat_id, timer) {
|
||||
Ok(()) => {
|
||||
let stock_str = context.stock_system_msg(
|
||||
StockMessage::MsgAutodeleteTimerChanged,
|
||||
timer.to_string(),
|
||||
"",
|
||||
from_id,
|
||||
);
|
||||
chat::add_info_msg(context, chat_id, stock_str);
|
||||
context.call_cb(Event::ChatAutodeleteTimerModified { chat_id, timer });
|
||||
}
|
||||
Err(err) => {
|
||||
|
||||
Reference in New Issue
Block a user