Add Event::ChatAutodeleteTimerModified

This commit is contained in:
Alexander Krotov
2020-01-04 20:41:48 +01:00
parent 0189644f08
commit f5ee9c530d
7 changed files with 69 additions and 1 deletions

View File

@@ -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.

View File

@@ -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);