hide verify snackbar when otr session is ended. fixed npe

This commit is contained in:
iNPUTmice 2014-07-20 12:36:57 +02:00
parent 9ddd2f195e
commit 542cbef53b
2 changed files with 4 additions and 0 deletions

View File

@ -291,6 +291,9 @@ public class Conversation extends AbstractEntity {
public String getOtrFingerprint() {
if (this.otrFingerprint == null) {
try {
if (getOtrSession()== null) {
return "";
}
DSAPublicKey remotePubKey = (DSAPublicKey) getOtrSession()
.getRemotePublicKey();
StringBuilder builder = new StringBuilder(

View File

@ -80,6 +80,7 @@ public class MessageParser extends AbstractParser implements
mXmppConnectionService.onOtrSessionEstablished(conversation);
} else if ((before != after) && (after == SessionStatus.FINISHED)) {
conversation.resetOtrSession();
mXmppConnectionService.updateConversationUi();
}
if ((body == null) || (body.isEmpty())) {
return null;