Skip to content

Commit 1eeb3c5

Browse files
committed
removing a redundant check
1 parent 7ea57de commit 1eeb3c5

File tree

1 file changed

+1
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/smsmessenger/extensions/Context.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ fun Context.getMMS(threadId: Long? = null, getImageResolutions: Boolean = false,
154154
} else if (threadId != null && dateFrom == -1) {
155155
selection = "${Sms.THREAD_ID} = ?"
156156
selectionArgs = arrayOf(threadId.toString())
157-
} else if (threadId != null && dateFrom != -1) {
157+
} else if (threadId != null) {
158158
selection = "${Sms.THREAD_ID} = ? AND ${Sms.DATE} < ${dateFrom.toLong()}"
159159
selectionArgs = arrayOf(threadId.toString())
160160
}

0 commit comments

Comments
 (0)