forked from mirror/monocles_chat
improve OTR warning
This commit is contained in:
parent
b3b12b9e04
commit
dd2d12d28e
1 changed files with 3 additions and 2 deletions
|
@ -2637,6 +2637,9 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
|
|||
} else if (mode == Conversation.MODE_SINGLE
|
||||
&& conversation.smpRequested()) {
|
||||
showSnackbar(R.string.smp_requested, R.string.verify, this.mAnswerSmpClickListener);
|
||||
} else if (mode == Conversation.MODE_SINGLE
|
||||
&& conversation.getNextEncryption() == Message.ENCRYPTION_OTR) {
|
||||
showSnackbar(R.string.otr_warning, R.string.readmore, OTRwarning);
|
||||
} else if (mode == Conversation.MODE_SINGLE
|
||||
&& conversation.hasValidOtrSession()
|
||||
&& (conversation.getOtrSession().getSessionStatus() == SessionStatus.ENCRYPTED)
|
||||
|
@ -2660,8 +2663,6 @@ public class ConversationFragment extends XmppFragment implements EditMessage.Ke
|
|||
} else {
|
||||
hideSnackbar();
|
||||
}
|
||||
} else if (conversation.getNextEncryption() == Message.ENCRYPTION_OTR) {
|
||||
showSnackbar(R.string.otr_warning, R.string.readmore, OTRwarning);
|
||||
} else {
|
||||
hideSnackbar();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue