mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
Merge pull request #927 from betheg/otr_query_message
MessageParser: fix the regex for otr query messages.
This commit is contained in:
commit
90d06d38d6
@ -75,7 +75,7 @@ public class MessageParser extends AbstractParser implements
|
|||||||
}
|
}
|
||||||
updateLastseen(packet, account, true);
|
updateLastseen(packet, account, true);
|
||||||
String body = packet.getBody();
|
String body = packet.getBody();
|
||||||
if (body.matches("^\\?OTRv\\d*\\?")) {
|
if (body.matches("^\\?OTRv\\d{1,2}\\?.*")) {
|
||||||
conversation.endOtrIfNeeded();
|
conversation.endOtrIfNeeded();
|
||||||
}
|
}
|
||||||
if (!conversation.hasValidOtrSession()) {
|
if (!conversation.hasValidOtrSession()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user