1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 12:37:58 +01:00

Set message type to 'chat' for OMEMO messages

This commit is contained in:
Paul Schaub 2018-11-24 15:49:12 +01:00
parent 122ad1ee62
commit a25890cfcc
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -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()) {