Remove index decrement when using until
This commit is contained in:
parent
751fe359e7
commit
0b33ec877d
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ fun Context.sendMessageCompat(text: String, addresses: List<String>, subId: Int?
|
||||||
if (isMms) {
|
if (isMms) {
|
||||||
// we send all MMS attachments separately to reduces the chances of hitting provider MMS limit.
|
// we send all MMS attachments separately to reduces the chances of hitting provider MMS limit.
|
||||||
if (attachments.size > 1) {
|
if (attachments.size > 1) {
|
||||||
for (i in 0 until attachments.lastIndex - 1) {
|
for (i in 0 until attachments.lastIndex) {
|
||||||
val attachment = attachments[i]
|
val attachment = attachments[i]
|
||||||
messagingUtils.sendMmsMessage("", addresses, listOf(attachment), settings)
|
messagingUtils.sendMmsMessage("", addresses, listOf(attachment), settings)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue