From def212321636b13a72fdff71431fc003ad791482 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Sat, 28 Mar 2020 00:50:32 +0100 Subject: db: log outgoing message in one case Not all cases covered yet. --- src/event/client_events.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/event') 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 #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); } -- cgit 1.4.1-2-gfad0 ef='/danisanti/profani-tty/'>summary refs log tree commit diff stats
blob: 3e086903dbbd69d14ad584883f51a8d8e23213b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69