From 9d2cc1008320fd3711d29515158ae2ef758783b5 Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Sun, 30 May 2021 00:03:45 +0900 Subject: [PATCH] Use map directly --- .../awais/instagrabber/webservices/DirectMessagesService.kt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/awais/instagrabber/webservices/DirectMessagesService.kt b/app/src/main/java/awais/instagrabber/webservices/DirectMessagesService.kt index 5be3c91d..f877ed99 100644 --- a/app/src/main/java/awais/instagrabber/webservices/DirectMessagesService.kt +++ b/app/src/main/java/awais/instagrabber/webservices/DirectMessagesService.kt @@ -298,9 +298,7 @@ class DirectMessagesService private constructor( userIds: List, threadTitle: String?, ): Call { - val userIdStringList = userIds.asSequence() - .filterNotNull() - .map { it.toString() } + val userIdStringList = userIds.map { it.toString() } val form = mutableMapOf( "_csrftoken" to csrfToken, "_uuid" to deviceUuid,