1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 14:22:05 +01:00

Merge pull request #285 from vanitasvitae/omemoMessageTypeChat

Set message type to 'chat' for OMEMO messages
This commit is contained in:
Florian Schmaus 2018-11-28 13:57:40 +01:00 committed by GitHub
commit 52a9ab1fe6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,8 +127,7 @@ public class OmemoMessage {
*/ */
public Message asMessage(Jid recipient) { public Message asMessage(Jid recipient) {
Message messageStanza = new Message(); Message messageStanza = new Message(recipient, Message.Type.chat);
messageStanza.setTo(recipient);
messageStanza.addExtension(getElement()); messageStanza.addExtension(getElement());
if (OmemoConfiguration.getAddOmemoHintBody()) { if (OmemoConfiguration.getAddOmemoHintBody()) {