mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-23 18:15:22 +00:00
Twiddle the auto initiate
This commit is contained in:
parent
dde2d2564a
commit
5c97b1e864
@ -200,12 +200,17 @@ public class ConversationItem extends LinearLayout {
|
||||
}
|
||||
|
||||
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(),
|
||||
messageRecord.getBody().getBody(),
|
||||
messageRecord.getThreadId());
|
||||
messageRecord.getBody().getBody(),
|
||||
messageRecord.getThreadId());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user