mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-06-05 21:49:22 +02:00
removing a redundant check
This commit is contained in:
@ -154,7 +154,7 @@ fun Context.getMMS(threadId: Long? = null, getImageResolutions: Boolean = false,
|
|||||||
} else if (threadId != null && dateFrom == -1) {
|
} else if (threadId != null && dateFrom == -1) {
|
||||||
selection = "${Sms.THREAD_ID} = ?"
|
selection = "${Sms.THREAD_ID} = ?"
|
||||||
selectionArgs = arrayOf(threadId.toString())
|
selectionArgs = arrayOf(threadId.toString())
|
||||||
} else if (threadId != null && dateFrom != -1) {
|
} else if (threadId != null) {
|
||||||
selection = "${Sms.THREAD_ID} = ? AND ${Sms.DATE} < ${dateFrom.toLong()}"
|
selection = "${Sms.THREAD_ID} = ? AND ${Sms.DATE} < ${dateFrom.toLong()}"
|
||||||
selectionArgs = arrayOf(threadId.toString())
|
selectionArgs = arrayOf(threadId.toString())
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user