diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-02-12 08:54:12 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-02-12 08:54:12 +0100 |
commit | 11b6e1bfa07fba1028a6ef31a336ad5856fc5801 (patch) | |
tree | d1b9f3ae89bff9d6ed998d31b0de804f932b5263 /src/omemo/omemo.c | |
parent | 38c32be14cb6b985a0c3982d5fef7127c7dbbaa7 (diff) | |
download | profani-tty-11b6e1bfa07fba1028a6ef31a336ad5856fc5801.tar.gz |
xep-0308: enable corrections for outgoing encrypted messages
Diffstat (limited to 'src/omemo/omemo.c')
-rw-r--r-- | src/omemo/omemo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/omemo/omemo.c b/src/omemo/omemo.c index 0c981db1..e44a4d71 100644 --- a/src/omemo/omemo.c +++ b/src/omemo/omemo.c @@ -671,7 +671,7 @@ out: } char * -omemo_on_message_send(ProfWin *win, const char *const message, gboolean request_receipt, gboolean muc) +omemo_on_message_send(ProfWin *win, const char *const message, gboolean request_receipt, gboolean muc, const char *const replace_id) { char *id = NULL; int res; @@ -809,11 +809,11 @@ omemo_on_message_send(ProfWin *win, const char *const message, gboolean request_ if (muc) { ProfMucWin *mucwin = (ProfMucWin *)win; assert(mucwin->memcheck == PROFMUCWIN_MEMCHECK); - id = message_send_chat_omemo(mucwin->roomjid, omemo_ctx.device_id, keys, iv, AES128_GCM_IV_LENGTH, ciphertext, ciphertext_len, request_receipt, TRUE); + id = message_send_chat_omemo(mucwin->roomjid, omemo_ctx.device_id, keys, iv, AES128_GCM_IV_LENGTH, ciphertext, ciphertext_len, request_receipt, TRUE, replace_id); } else { ProfChatWin *chatwin = (ProfChatWin *)win; assert(chatwin->memcheck == PROFCHATWIN_MEMCHECK); - id = message_send_chat_omemo(chatwin->barejid, omemo_ctx.device_id, keys, iv, AES128_GCM_IV_LENGTH, ciphertext, ciphertext_len, request_receipt, FALSE); + id = message_send_chat_omemo(chatwin->barejid, omemo_ctx.device_id, keys, iv, AES128_GCM_IV_LENGTH, ciphertext, ciphertext_len, request_receipt, FALSE, replace_id); } out: |