From 810ea3222319e349bfc149fd85be470247b66c96 Mon Sep 17 00:00:00 2001 From: Paul Fariello Date: Fri, 1 Mar 2019 05:10:23 +0220 Subject: Follow normal workflow for OMEMO message reception We try to decrypt all messages, if it's successful we use sv_ev_incoming_message even for OMEMO messages. We pass an OMEMO boolean to let UI be aware that message were encrypted. --- src/plugins/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/api.c b/src/plugins/api.c index 4d8434e1..fc47f193 100644 --- a/src/plugins/api.c +++ b/src/plugins/api.c @@ -473,7 +473,7 @@ api_settings_int_set(const char *const group, const char *const key, int value) void api_incoming_message(const char *const barejid, const char *const resource, const char *const message) { - sv_ev_incoming_message((char*)barejid, (char*)resource, (char*)message, NULL, NULL); + sv_ev_incoming_message((char*)barejid, (char*)resource, (char*)message, NULL, NULL, FALSE); // TODO handle all states sv_ev_activity((char*)barejid, (char*)resource, FALSE); -- cgit 1.4.1-2-gfad0