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.
This commit is contained in:
Paul Fariello
2019-03-01 05:10:23 +02:20
parent d871efdcf9
commit 810ea32223
6 changed files with 110 additions and 119 deletions

View File

@@ -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);