cleanup series of webxdc info messages (#3395)

* clarify webxdc reference wrt info-messages

* add from_id parameter to add_info_msg_with_cmd()

* flag webxdc-info-messages as such

* set from_id to sender for webxdc-info-messages

* test additional webxdc info properties

* do not add series of similar info messages

instead, if on adding the last info message
is already from the same webxdc and sender,
just update the text

* test cleanup of webxdc info messages series

* update changelog

* make clippy happy

there is no real complexity in the args,
so allowing one more arg is probably fine.

if really wanted, we can refactor the function in another pr;
this pr is already complex enough :)

* use cleaner function names and comments

* clarify CHANGELOG
This commit is contained in:
bjoern
2022-06-04 11:12:09 +02:00
committed by GitHub
parent 303c4f1f6d
commit fcded63653
7 changed files with 211 additions and 25 deletions

View File

@@ -5,6 +5,9 @@
## Changes
- refactorings #3375
- clean up series of webxdc info messages;
`DC_EVENT_MSGS_CHANGED` is emitted on changes of existing info messages #3395
## Fixes
- do not reset our database if imported backup cannot be decrypted #3397