1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-22 20:47:57 +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) {
Message messageStanza = new Message();
messageStanza.setTo(recipient);
Message messageStanza = new Message(recipient, Message.Type.chat);
messageStanza.addExtension(getElement());
if (OmemoConfiguration.getAddOmemoHintBody()) {