about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
authorPaul Fariello <paul@fariello.eu>2019-03-01 05:10:23 +0220
committerPaul Fariello <paul@fariello.eu>2019-04-10 16:03:50 +0200
commit810ea3222319e349bfc149fd85be470247b66c96 (patch)
treee701635c55f90f7be45758083d06e32df48d27ac /src/event
parentd871efdcf91cce85e0dcc543d5be51b32871903f (diff)
downloadprofani-tty-810ea3222319e349bfc149fd85be470247b66c96.tar.gz
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.
Diffstat (limited to 'src/event')
-rw-r--r--src/event/server_events.c2
-rw-r--r--src/event/server_events.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c
index 69883141..ccb57213 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -442,7 +442,7 @@ _sv_ev_incoming_plain(ProfChatWin *chatwin, gboolean new_win, char *barejid, cha
 }
 
 void
-sv_ev_incoming_message(char *barejid, char *resource, char *message, char *pgp_message, GDateTime *timestamp)
+sv_ev_incoming_message(char *barejid, char *resource, char *message, char *pgp_message, GDateTime *timestamp, gboolean omemo)
 {
     gboolean new_win = FALSE;
     ProfChatWin *chatwin = wins_get_chat(barejid);
diff --git a/src/event/server_events.h b/src/event/server_events.h
index cc261487..b12ac94c 100644
--- a/src/event/server_events.h
+++ b/src/event/server_events.h
@@ -49,7 +49,7 @@ void sv_ev_room_history(const char *const room_jid, const char *const nick,
     GDateTime *timestamp, const char *const message);
 void sv_ev_room_message(const char *const room_jid, const char *const nick,
     const char *const message);
-void sv_ev_incoming_message(char *barejid, char *resource, char *message, char *pgp_message, GDateTime *timestamp);
+void sv_ev_incoming_message(char *barejid, char *resource, char *message, char *pgp_message, GDateTime *timestamp, gboolean omemo);
 void sv_ev_incoming_private_message(const char *const fulljid, char *message);
 void sv_ev_delayed_private_message(const char *const fulljid, char *message, GDateTime *timestamp);
 void sv_ev_typing(char *barejid, char *resource);