Show toast warning for duplicate attachments

This commit is contained in:
Naveen 2022-11-03 00:20:02 +05:30
parent ecdbc9036a
commit fedc52adc3
46 changed files with 107 additions and 16 deletions

View file

@ -907,6 +907,7 @@ class ThreadActivity : SimpleActivity() {
private fun addAttachment(uri: Uri) {
if (getAttachments().any { it.uri.toString() == uri.toString() }) {
toast(R.string.duplicate_item_warning)
return
}