end otr session instead of only resetting

This commit is contained in:
iNPUTmice 2014-10-05 11:14:50 +02:00
parent 45bd0449fb
commit 26ce62f365

View file

@ -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) {