about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2020-03-28 00:50:32 +0100
committerMichael Vetter <jubalh@iodoru.org>2020-04-06 10:50:20 +0200
commitdef212321636b13a72fdff71431fc003ad791482 (patch)
tree440e33682f4a5fcda8fa2e859507cbc1d0ceb143 /src/event
parent628b86f57e25a3804a6d8c1bd370e0ac69ced43d (diff)
downloadprofani-tty-def212321636b13a72fdff71431fc003ad791482.tar.gz
db: log outgoing message in one case
Not all cases covered yet.
Diffstat (limited to 'src/event')
-rw-r--r--src/event/client_events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event/client_events.c b/src/event/client_events.c
index 842ec362..c6c1bdb4 100644
--- a/src/event/client_events.c
+++ b/src/event/client_events.c
@@ -40,6 +40,7 @@
 #include <glib.h>
 
 #include "log.h"
+#include "database.h"
 #include "config/preferences.h"
 #include "event/common.h"
 #include "plugins/plugins.h"
@@ -295,6 +296,7 @@ cl_ev_send_msg_correct(ProfChatWin *chatwin, const char *const msg, const char *
         if (!handled) {
             char *id = message_send_chat(chatwin->barejid, plugin_msg, oob_url, request_receipt, replace_id);
             chat_log_msg_out(chatwin->barejid, plugin_msg, NULL);
+            log_database_add_outgoing(id, chatwin->barejid, plugin_msg, replace_id);
             chatwin_outgoing_msg(chatwin, plugin_msg, id, PROF_MSG_ENC_NONE, request_receipt, replace_id);
             free(id);
         }