about summary refs log tree commit diff stats
path: root/src/otr
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-02-11 15:26:58 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-02-11 15:26:58 +0100
commitb6b7dd5ad497a71e250b8b3cef0bb987314b141d (patch)
tree150adcde6b07ad55f6bfb5a9db8db10c239bc6ac /src/otr
parent11181100712fc2a1c2f310b4470d752488e8961e (diff)
downloadprofani-tty-b6b7dd5ad497a71e250b8b3cef0bb987314b141d.tar.gz
xep-0308: update the UI upon sending a corrected message
So far we don't do this for encrypted messages. Still needs to be done.
And MUC also needs to be done.
Diffstat (limited to 'src/otr')
-rw-r--r--src/otr/otr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/otr/otr.c b/src/otr/otr.c
index 40684857..bd88ae0b 100644
--- a/src/otr/otr.c
+++ b/src/otr/otr.c
@@ -348,7 +348,8 @@ otr_on_message_send(ProfChatWin *chatwin, const char *const message, gboolean re
         if (encrypted) {
             id = message_send_chat_otr(chatwin->barejid, encrypted, request_receipt);
             chat_log_otr_msg_out(chatwin->barejid, message, NULL);
-            chatwin_outgoing_msg(chatwin, message, id, PROF_MSG_ENC_OTR, request_receipt);
+            // TODO replace_id
+            chatwin_outgoing_msg(chatwin, message, id, PROF_MSG_ENC_OTR, request_receipt, NULL);
             otr_free_message(encrypted);
             free(id);
             return TRUE;
@@ -368,7 +369,8 @@ otr_on_message_send(ProfChatWin *chatwin, const char *const message, gboolean re
     if (policy == PROF_OTRPOLICY_OPPORTUNISTIC) {
         char *otr_tagged_msg = otr_tag_message(message);
         id = message_send_chat_otr(chatwin->barejid, otr_tagged_msg, request_receipt);
-        chatwin_outgoing_msg(chatwin, message, id, PROF_MSG_ENC_PLAIN, request_receipt);
+        //TODO replace_id
+        chatwin_outgoing_msg(chatwin, message, id, PROF_MSG_ENC_PLAIN, request_receipt, NULL);
         chat_log_msg_out(chatwin->barejid, message, NULL);
         free(otr_tagged_msg);
         free(id);