fix: hide incoming broadcasts in DC_GCL_FOR_FORWARDING (#7726)

you can't write to those chats, so you also can not forward to them.

Closes #7702
This commit is contained in:
Simon Laux
2026-01-15 22:26:05 +00:00
committed by GitHub
parent 96b8d1720e
commit 76171aea2e
2 changed files with 40 additions and 4 deletions

View File

@@ -894,7 +894,7 @@ int dc_preconfigure_keypair (dc_context_t* context, const cha
* the pseudo-chat DC_CHAT_ID_ARCHIVED_LINK is added if there are _any_ archived
* chats
* - the flag DC_GCL_FOR_FORWARDING sorts "Saved messages" to the top of the chatlist
* and hides the "Device chat" and contact requests.
* and hides the "Device chat", contact requests and incoming broadcasts.
* typically used on forwarding, may be combined with DC_GCL_NO_SPECIALS
* to also hide the archive link.
* - if the flag DC_GCL_NO_SPECIALS is set, archive link is not added