fix online friends & pagination

This commit is contained in:
2024-12-04 18:57:14 +03:00
parent 65ed990726
commit d7e8c0dd35
4 changed files with 14 additions and 10 deletions
@@ -36,7 +36,7 @@ class FriendsRepositoryImpl(
val onlineFriends = async { getOnlineFriends(count, offset) }.await()
.successOrElse { failure ->
return@withContext failure
}.mapNotNull { userId -> friends.find { it.id == userId } }
}
ApiResult.success(FriendsInfo(friends, onlineFriends))
}