don't show contact details when in conversations with self
This commit is contained in:
parent
2713fd50c8
commit
b99d70bfe7
|
@ -336,6 +336,10 @@ public class Conversation extends AbstractEntity implements Blockable {
|
|||
return this.correctingMessage;
|
||||
}
|
||||
|
||||
public boolean withSelf() {
|
||||
return getContact().isSelf();
|
||||
}
|
||||
|
||||
public interface OnMessageFound {
|
||||
void onMessageFound(final Message message);
|
||||
}
|
||||
|
|
|
@ -411,6 +411,7 @@ public class ConversationActivity extends XmppActivity
|
|||
menuInviteContact.setVisible(getSelectedConversation().getMucOptions().canInvite());
|
||||
menuSecure.setVisible((Config.supportOpenPgp() || Config.supportOmemo()) && Config.multipleEncryptionChoices()); //only if pgp is supported we have a choice
|
||||
} else {
|
||||
menuContactDetails.setVisible(!this.getSelectedConversation().withSelf());
|
||||
menuMucDetails.setVisible(false);
|
||||
menuSecure.setVisible(Config.multipleEncryptionChoices());
|
||||
}
|
||||
|
|
|
@ -468,7 +468,9 @@ public class ConversationFragment extends Fragment implements EditMessage.Keyboa
|
|||
highlightInConference(user);
|
||||
}
|
||||
} else {
|
||||
activity.switchToContactDetails(message.getContact(), message.getFingerprint());
|
||||
if (!message.getContact().isSelf()) {
|
||||
activity.switchToContactDetails(message.getContact(), message.getFingerprint());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
Account account = message.getConversation().getAccount();
|
||||
|
|
Loading…
Reference in New Issue