Skip to content

Commit

Permalink
Changes after review.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-cebo committed Jan 3, 2025
1 parent 943b2cd commit 2bcaf27
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ data class MembershipImpl(
channels = listOf(PNChannelMembership.Partial(channel.id, custom)),
include = MembershipInclude(
includeCustom = true,
includeStatus = false,
includeType = false,
includeStatus = true,
includeType = true,
includeTotalCount = true,
includeChannel = true,
includeChannelCustom = true,
includeChannelType = true,
includeChannelStatus = false
includeChannelStatus = true
),
filter = filterThisChannel()
).then { pnChannelMembershipArrayResult ->
Expand Down Expand Up @@ -116,11 +116,11 @@ data class MembershipImpl(
chat,
channel,
user,
update.custom?.value ?: custom,
update.custom.let { newCustom -> if (newCustom != null) newCustom.value else custom },
update.updated,
update.eTag,
update.status?.value,
update.type?.value
update.status.let { newStatus -> if (newStatus != null) newStatus.value else status },
update.type.let { newType -> if (newType != null) newType.value else type }
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ data class UserImpl(
sort = sort,
include = MembershipInclude(
includeCustom = true,
includeStatus = false,
includeType = false,
includeStatus = true,
includeType = true,
includeTotalCount = true,
includeChannel = true,
includeChannelCustom = true,
includeChannelType = true,
includeChannelStatus = false
includeChannelStatus = true
)
).then { pnChannelMembershipArrayResult ->
MembershipsResponse(
Expand Down Expand Up @@ -209,13 +209,13 @@ data class UserImpl(
sort = sort,
include = MembershipInclude(
includeCustom = true,
includeStatus = false,
includeType = false,
includeStatus = true,
includeType = true,
includeTotalCount = true,
includeChannel = true,
includeChannelCustom = true,
includeChannelType = true,
includeChannelStatus = false
includeChannelStatus = true
)
)
}
Expand Down

0 comments on commit 2bcaf27

Please sign in to comment.