From a25890cfcc38fc11e8899595b6c745faebf9962d Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Sat, 24 Nov 2018 15:49:12 +0100 Subject: [PATCH] Set message type to 'chat' for OMEMO messages --- .../main/java/org/jivesoftware/smackx/omemo/OmemoMessage.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoMessage.java b/smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoMessage.java index e4d2f1bc3..0883407f3 100644 --- a/smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoMessage.java +++ b/smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoMessage.java @@ -127,8 +127,7 @@ public class OmemoMessage { */ public Message asMessage(Jid recipient) { - Message messageStanza = new Message(); - messageStanza.setTo(recipient); + Message messageStanza = new Message(recipient, Message.Type.chat); messageStanza.addExtension(getElement()); if (OmemoConfiguration.getAddOmemoHintBody()) {