From a0a4fd042648f0b936621b076694283dd577f016 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Sat, 28 Mar 2020 01:16:31 +0100 Subject: db: log all incoming and outgoing messages --- src/otr/otr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/otr') diff --git a/src/otr/otr.c b/src/otr/otr.c index ceef72fe..3c3ed618 100644 --- a/src/otr/otr.c +++ b/src/otr/otr.c @@ -40,6 +40,7 @@ #include #include "log.h" +#include "database.h" #include "config/preferences.h" #include "config/files.h" #include "otr/otr.h" @@ -348,6 +349,7 @@ otr_on_message_send(ProfChatWin *chatwin, const char *const message, gboolean re if (encrypted) { id = message_send_chat_otr(chatwin->barejid, encrypted, request_receipt, replace_id); chat_log_otr_msg_out(chatwin->barejid, message, NULL); + log_database_add_outgoing_chat(id, chatwin->barejid, message, replace_id, PROF_MSG_ENC_OTR); chatwin_outgoing_msg(chatwin, message, id, PROF_MSG_ENC_OTR, request_receipt, replace_id); otr_free_message(encrypted); free(id); -- cgit 1.4.1-2-gfad0