1
0
Fork 0
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:
B. Petersen 2019-01-07 14:04:23 +01:00
parent 46f03b5412
commit bbd22f95fc
No known key found for this signature in database
GPG key ID: 3B88E92DEA8E9AFC

View file

@ -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);