Skip to content

Commit 0b33ec8

Browse files
committed
Remove index decrement when using until
1 parent 751fe35 commit 0b33ec8

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/smsmessenger/messaging/Messaging.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fun Context.sendMessageCompat(text: String, addresses: List<String>, subId: Int?
4242
if (isMms) {
4343
// we send all MMS attachments separately to reduces the chances of hitting provider MMS limit.
4444
if (attachments.size > 1) {
45-
for (i in 0 until attachments.lastIndex - 1) {
45+
for (i in 0 until attachments.lastIndex) {
4646
val attachment = attachments[i]
4747
messagingUtils.sendMmsMessage("", addresses, listOf(attachment), settings)
4848
}

0 commit comments

Comments
 (0)