otr: switch to the otr-state the partner alternate.

should also fixed #877
This commit is contained in:
Michael 2015-01-25 13:07:31 +01:00
parent 90d06d38d6
commit 7800647885
2 changed files with 3 additions and 0 deletions

View file

@ -102,8 +102,10 @@ public class MessageParser extends AbstractParser implements
body = otrSession.transformReceiving(body);
SessionStatus after = otrSession.getSessionStatus();
if ((before != after) && (after == SessionStatus.ENCRYPTED)) {
conversation.setNextEncryption(Message.ENCRYPTION_OTR);
mXmppConnectionService.onOtrSessionEstablished(conversation);
} else if ((before != after) && (after == SessionStatus.FINISHED)) {
conversation.setNextEncryption(Message.ENCRYPTION_NONE);
conversation.resetOtrSession();
mXmppConnectionService.updateConversationUi();
}

View file

@ -298,6 +298,7 @@ public class ConversationFragment extends Fragment {
default:
break;
}
getActivity().invalidateOptionsMenu();
}
}