mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 12:05:22 +00:00
Twiddle the auto initiate
This commit is contained in:
parent
dde2d2564a
commit
5c97b1e864
@ -200,9 +200,14 @@ public class ConversationItem extends LinearLayout {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setEvents(MessageRecord messageRecord) {
|
private void setEvents(MessageRecord messageRecord) {
|
||||||
setClickable(messageRecord.isKeyExchange() && !messageRecord.isOutgoing());
|
setClickable(messageRecord.isKeyExchange() &&
|
||||||
|
!messageRecord.isCorruptedKeyExchange() &&
|
||||||
|
!messageRecord.isOutgoing());
|
||||||
|
|
||||||
if (!messageRecord.isOutgoing() && messageRecord.getRecipients().isSingleRecipient()) {
|
if (!messageRecord.isOutgoing() &&
|
||||||
|
messageRecord.getRecipients().isSingleRecipient() &&
|
||||||
|
!messageRecord.isSecure())
|
||||||
|
{
|
||||||
checkForAutoInitiate(messageRecord.getIndividualRecipient(),
|
checkForAutoInitiate(messageRecord.getIndividualRecipient(),
|
||||||
messageRecord.getBody().getBody(),
|
messageRecord.getBody().getBody(),
|
||||||
messageRecord.getThreadId());
|
messageRecord.getThreadId());
|
||||||
|
Loading…
Reference in New Issue
Block a user