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
No known key found for this signature in database
GPG Key ID: 267811D6E6A2698C
1 changed files with 4 additions and 1 deletions

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