end otr session instead of only resetting
This commit is contained in:
parent
45bd0449fb
commit
26ce62f365
|
@ -73,7 +73,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*\\?")) {
|
||||||
conversation.resetOtrSession();
|
conversation.endOtrIfNeeded();
|
||||||
}
|
}
|
||||||
if (!conversation.hasValidOtrSession()) {
|
if (!conversation.hasValidOtrSession()) {
|
||||||
if (properlyAddressed) {
|
if (properlyAddressed) {
|
||||||
|
|
Loading…
Reference in New Issue