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

fork-5.53.8
Nicholas 2022-09-14 10:38:40 -04:00 zatwierdzone przez Greyson Parrelli
rodzic 889d1183b2
commit aa268fc3ba
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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);
}