Skip to content

Commit

Permalink
chore: Update code snippets for channel/community members query and s…
Browse files Browse the repository at this point in the history
…earch api
  • Loading branch information
kornsitti committed Aug 2, 2024
1 parent 344b5c9 commit 271ec0a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions code_snippet/channel/amity_channel_member_query.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class AmityChannelMemberQuery {
pageFuture: (token) => AmityChatClient.newChannelRepository()
.membership(channelId)
.getMembers()
.includeDeleted(false) // optional to filter deleted users from the result
.getPagingData(token: token, limit: 20),
pageSize: 20,
)..addListener(
Expand Down
1 change: 1 addition & 0 deletions code_snippet/channel/amity_channel_member_search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class AmityChannelMemberSearch {
pageFuture: (token) => AmityChatClient.newChannelRepository()
.membership(channelId)
.searchMembers(keyword)
.includeDeleted(false) // optional to filter deleted users from the result
.getPagingData(token: token, limit: 20),
pageSize: 20,
)..addListener(
Expand Down
1 change: 1 addition & 0 deletions code_snippet/community/amity_community_member_query.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class AmityCommunityMemberQuery {
.getMembers()
.filter(filter)
.sortBy(sortOption)
.includeDeleted(false) // optional to filter deleted users from the result
.roles([
'community-moderator'
]) //optional to query specific members by roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class AmityCommunityMemberSearchByKeyword {
.searchMembers(keyword)
.filter(filter)
.sortBy(sortOption)
.includeDeleted(false) // optional to filter deleted users from the result
.roles([
'community-moderator'
]) //optional to query specific members by roles
Expand Down

0 comments on commit 271ec0a

Please sign in to comment.