mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-05 19:42:04 +02:00
allow broadcasting own messages without marking them as being forwarded
This commit is contained in:
parent
46f03b5412
commit
bbd22f95fc
1 changed files with 7 additions and 1 deletions
|
@ -2600,7 +2600,13 @@ void dc_forward_msgs(dc_context_t* context, const uint32_t* msg_ids, int msg_cnt
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
dc_param_set_int(msg->param, DC_PARAM_FORWARDED, 1);
|
||||
// do not mark own messages as being forwarded.
|
||||
// this allows sort of broadcasting
|
||||
// by just forwarding messages to other chats.
|
||||
if (msg->from_id!=DC_CONTACT_ID_SELF) {
|
||||
dc_param_set_int(msg->param, DC_PARAM_FORWARDED, 1);
|
||||
}
|
||||
|
||||
dc_param_set (msg->param, DC_PARAM_GUARANTEE_E2EE, NULL);
|
||||
dc_param_set (msg->param, DC_PARAM_FORCE_PLAINTEXT, NULL);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue