feat: add note to self delete option

This commit is contained in:
0x330a
2023-08-24 12:05:59 +10:00
parent ff057d7110
commit 50bc298490

View File

@@ -56,7 +56,10 @@ class DeleteOptionsBottomSheet : BottomSheetDialogFragment(), View.OnClickListen
if (!this::recipient.isInitialized) {
return dismiss()
}
if (!recipient.isGroupRecipient && !contact.isNullOrEmpty()) {
if (recipient.isLocalNumber) {
binding.deleteForEveryoneTextView.text =
getString(R.string.delete_message_for_my_devices)
} else if (!recipient.isGroupRecipient && !contact.isNullOrEmpty()) {
binding.deleteForEveryoneTextView.text =
resources.getString(R.string.delete_message_for_me_and_recipient, contact)
}