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:
commit
52a9ab1fe6
1 changed files with 1 additions and 2 deletions
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in a new issue