mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 09:42:17 -05:00
MessageParser: fix the regex for otr query messages.
This commit is contained in:
parent
7769d305e6
commit
8041d23cb1
@ -75,7 +75,7 @@ public class MessageParser extends AbstractParser implements
|
||||
}
|
||||
updateLastseen(packet, account, true);
|
||||
String body = packet.getBody();
|
||||
if (body.matches("^\\?OTRv\\d*\\?")) {
|
||||
if (body.matches("^\\?OTRv\\d{1,2}\\?.*")) {
|
||||
conversation.endOtrIfNeeded();
|
||||
}
|
||||
if (!conversation.hasValidOtrSession()) {
|
||||
|
Loading…
Reference in New Issue
Block a user