Only show "Note To Self" as Voice Memo author if both sender and receiver are self.

This commit is contained in:
Nicholas 2022-09-14 10:38:40 -04:00 committed by Greyson Parrelli
parent 889d1183b2
commit aa268fc3ba

View file

@ -175,8 +175,8 @@ class VoiceNoteMediaItemFactory {
sender.getDisplayName(context),
threadRecipient.getDisplayName(context));
} else if (preference.isDisplayContact()) {
return sender.isSelf() ? context.getString(R.string.note_to_self)
: sender.getDisplayName(context);
return sender.isSelf() && threadRecipient.isSelf() ? context.getString(R.string.note_to_self)
: sender.getDisplayName(context);
} else {
return context.getString(R.string.MessageNotifier_signal_message);
}