Skip to content
Snippets Groups Projects
Commit f1a12f8f authored by Taras's avatar Taras
Browse files

Remove unnecessary safe call

parent ed6baa30
No related branches found
No related tags found
No related merge requests found
...@@ -68,9 +68,9 @@ class InvitesDataSource @Inject constructor( ...@@ -68,9 +68,9 @@ class InvitesDataSource @Inject constructor(
} }
private fun getProfileRoomMembersKnockFlow(): Flow<List<FollowRequestListItem>> = private fun getProfileRoomMembersKnockFlow(): Flow<List<FollowRequestListItem>> =
knockRequestsDataSource.getKnockRequestsListItemsLiveData(profileRoomId)?.map { list -> knockRequestsDataSource.getKnockRequestsListItemsLiveData(profileRoomId).map { list ->
list.map { FollowRequestListItem(it.toCircleUser(), it.message) } list.map { FollowRequestListItem(it.toCircleUser(), it.message) }
}?.asFlow() ?: flowOf() }.asFlow()
private fun getProfileSpaceInvitesFlow(): Flow<List<ConnectionInviteListItem>> = private fun getProfileSpaceInvitesFlow(): Flow<List<ConnectionInviteListItem>> =
getSpacesLiveData(listOf(Membership.INVITE)).map { getSpacesLiveData(listOf(Membership.INVITE)).map {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment