Use map directly

This commit is contained in:
Ammar Githam 2021-05-30 00:03:45 +09:00
parent e8ce2898b6
commit 9d2cc10083

View File

@ -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() val userIdStringList = userIds.map { it.toString() }
.filterNotNull()
.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,