Skip to content

Commit

Permalink
Don't show add contact button if the user has no e164.
Browse files Browse the repository at this point in the history
Fixes #12570
  • Loading branch information
greyson-signal committed Feb 16, 2023
1 parent 7215ca6 commit 8676cb2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
if (recipient != null && recipient.get().isMuted()) inflater.inflate(R.menu.conversation_muted, menu);
else inflater.inflate(R.menu.conversation_unmuted, menu);

if (isSingleConversation() && getRecipient().getContactUri() == null && !recipient.get().isReleaseNotes() && !recipient.get().isSelf()) {
if (isSingleConversation() && getRecipient().getContactUri() == null && !recipient.get().isReleaseNotes() && !recipient.get().isSelf() && recipient.get().hasE164()) {
inflater.inflate(R.menu.conversation_add_to_contacts, menu);
}

Expand Down

0 comments on commit 8676cb2

Please sign in to comment.