Emit per-message events for expired messages

Instead of emitting single MsgsChanged event
with zero chat and msg IDs, emit one event per message.

Also emit WebxdcInstanceDeleted event if expired message
contains a webxdc.
This commit is contained in:
link2xt
2022-09-17 17:07:56 +00:00
parent 474eb7cbc8
commit ffe7216194
2 changed files with 98 additions and 38 deletions

View File

@@ -6,6 +6,8 @@
### Changes
- truncate incoming messages by lines instead of just length #3480
- emit separate `DC_EVENT_MSGS_CHANGED` for each expired message,
and `DC_EVENT_WEBXDC_INSTANCE_DELETED` when a message contains a webxdc #3605
### Fixes