mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
Add Event::ChatAutodeleteTimerModified
This commit is contained in:
@@ -4417,6 +4417,11 @@ int64_t dc_lot_get_timestamp (const dc_lot_t* lot);
|
||||
*/
|
||||
#define DC_EVENT_CHAT_MODIFIED 2020
|
||||
|
||||
/**
|
||||
* Chat autodelete timer changed.
|
||||
*/
|
||||
#define DC_EVENT_CHAT_AUTODELETE_TIMER_MODIFIED 2021
|
||||
|
||||
|
||||
/**
|
||||
* Contact(s) created, renamed, verified, blocked or deleted.
|
||||
|
||||
@@ -170,6 +170,14 @@ impl ContextWrapper {
|
||||
Event::ChatModified(chat_id) => {
|
||||
ffi_cb(self, event_id, chat_id.to_u32() as uintptr_t, 0);
|
||||
}
|
||||
Event::ChatAutodeleteTimerModified { chat_id, timer } => {
|
||||
ffi_cb(
|
||||
self,
|
||||
event_id,
|
||||
chat_id.to_u32() as uintptr_t,
|
||||
timer as uintptr_t,
|
||||
);
|
||||
}
|
||||
Event::ContactsChanged(id) | Event::LocationChanged(id) => {
|
||||
let id = id.unwrap_or_default();
|
||||
ffi_cb(self, event_id, id as uintptr_t, 0);
|
||||
|
||||
Reference in New Issue
Block a user