mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
modernise some stuff
This commit is contained in:
@@ -5,10 +5,9 @@
|
|||||||
### Changes
|
### Changes
|
||||||
- Don't use deprecated `chrono` functions #3798
|
- Don't use deprecated `chrono` functions #3798
|
||||||
- Document accounts manager #3837
|
- Document accounts manager #3837
|
||||||
|
|
||||||
- If a classical-email-user sends an email to a group and adds new recipients,
|
- If a classical-email-user sends an email to a group and adds new recipients,
|
||||||
add the new recipients as group members #3781
|
add the new recipients as group members #3781
|
||||||
|
- `DC_EVENT_WEBXDC_UPDATE_STATE_CHANGED` is emitted when update state changes #3320
|
||||||
### API-Changes
|
### API-Changes
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
@@ -285,8 +284,6 @@
|
|||||||
this affects `dc_get_chat_contacts()`, `dc_get_contacts()` and `dc_get_blocked_contacts()` #3562
|
this affects `dc_get_chat_contacts()`, `dc_get_contacts()` and `dc_get_blocked_contacts()` #3562
|
||||||
- add `internet_access` flag to `dc_msg_get_webxdc_info()` #3516
|
- add `internet_access` flag to `dc_msg_get_webxdc_info()` #3516
|
||||||
- `DC_EVENT_WEBXDC_INSTANCE_DELETED` is emitted when a message containing a webxdc gets deleted #3592
|
- `DC_EVENT_WEBXDC_INSTANCE_DELETED` is emitted when a message containing a webxdc gets deleted #3592
|
||||||
- `DC_EVENT_WEBXDC_BUSY_UPDATING` is emitted when a new update has to be sent by an webxdc #3320
|
|
||||||
- `DC_EVENT_WEBXDC_UP_TO_DATE` is emitted when a webxdc has sent all updates #3320
|
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
- do not emit notifications for blocked chats #3557
|
- do not emit notifications for blocked chats #3557
|
||||||
|
|||||||
@@ -3307,11 +3307,10 @@ pub unsafe extern "C" fn dc_is_webxdc_updating(
|
|||||||
msg_id: u32,
|
msg_id: u32,
|
||||||
) -> libc::c_int {
|
) -> libc::c_int {
|
||||||
if context.is_null() {
|
if context.is_null() {
|
||||||
eprintln!("ignoring careless call to dc_get_blocked_contacts()");
|
eprintln!("ignoring careless call to dc_is_webxdc_updating()");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
let ctx = &*context;
|
let ctx = &*context;
|
||||||
|
|
||||||
block_on(async move {
|
block_on(async move {
|
||||||
webxdc::get_busy_webxdc_instances(ctx)
|
webxdc::get_busy_webxdc_instances(ctx)
|
||||||
.await
|
.await
|
||||||
|
|||||||
@@ -281,8 +281,6 @@ pub enum JSONRPCEventType {
|
|||||||
WebxdcInstanceDeleted {
|
WebxdcInstanceDeleted {
|
||||||
msg_id: u32,
|
msg_id: u32,
|
||||||
},
|
},
|
||||||
WebxdcBusyUpdating,
|
|
||||||
WebxdcUpToDate,
|
|
||||||
WebxdcUpdateStateChanged,
|
WebxdcUpdateStateChanged,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -314,12 +314,12 @@ pub enum EventType {
|
|||||||
status_update_serial: StatusUpdateSerial,
|
status_update_serial: StatusUpdateSerial,
|
||||||
},
|
},
|
||||||
|
|
||||||
/// Inform that a message containing a webxdc instance has been deleted
|
/// Informs that a message containing a webxdc instance has been deleted
|
||||||
WebxdcInstanceDeleted {
|
WebxdcInstanceDeleted {
|
||||||
msg_id: MsgId,
|
msg_id: MsgId,
|
||||||
},
|
},
|
||||||
|
|
||||||
/// Inform that the webxdc changed its update sending state
|
/// Informs that the webxdc changed its update sending state
|
||||||
WebxdcUpdateStateChanged {
|
WebxdcUpdateStateChanged {
|
||||||
msg_id: MsgId,
|
msg_id: MsgId,
|
||||||
is_sending: bool,
|
is_sending: bool,
|
||||||
|
|||||||
Reference in New Issue
Block a user