mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-29 00:14:12 +01:00
workaround for some weird clients sending empty string over otr
This commit is contained in:
parent
1bdbeb620f
commit
cc65567366
1 changed files with 3 additions and 1 deletions
|
@ -84,7 +84,9 @@ public class MessageParser {
|
||||||
conversation.resetOtrSession();
|
conversation.resetOtrSession();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (body == null) {
|
|
||||||
|
//isEmpty is a work around for some weird clients which send emtpty strings over otr
|
||||||
|
if ((body == null)||(body.isEmpty())) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return new Message(conversation, packet.getFrom(), body, Message.ENCRYPTION_OTR,Message.STATUS_RECIEVED);
|
return new Message(conversation, packet.getFrom(), body, Message.ENCRYPTION_OTR,Message.STATUS_RECIEVED);
|
||||||
|
|
Loading…
Add table
Reference in a new issue