Browse Source

Use map directly

renovate/org.robolectric-robolectric-4.x
Ammar Githam 4 years ago
parent
commit
9d2cc10083
  1. 4
      app/src/main/java/awais/instagrabber/webservices/DirectMessagesService.kt

4
app/src/main/java/awais/instagrabber/webservices/DirectMessagesService.kt

@ -298,9 +298,7 @@ class DirectMessagesService private constructor(
userIds: List<Long>, userIds: List<Long>,
threadTitle: String?, threadTitle: String?,
): Call<DirectThread?> { ): Call<DirectThread?> {
val userIdStringList = userIds.asSequence()
.filterNotNull()
.map { it.toString() }
val userIdStringList = userIds.map { it.toString() }
val form = mutableMapOf<String, Any>( val form = mutableMapOf<String, Any>(
"_csrftoken" to csrfToken, "_csrftoken" to csrfToken,
"_uuid" to deviceUuid, "_uuid" to deviceUuid,

Loading…
Cancel
Save