stream-chat-angular 7.1.1 → 7.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,7 @@ import { MentionModule } from 'angular-mentions';
22
22
  import * as i1$1 from '@angular/forms';
23
23
  import { FormGroup, FormControl, Validators, FormArray, ReactiveFormsModule } from '@angular/forms';
24
24
 
25
- const version = '7.1.1';
25
+ const version = '7.1.3';
26
26
 
27
27
  /**
28
28
  * The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](/chat/docs/sdk/angular/components/NotificationListComponent/) component displays the currently active notifications.
@@ -1044,7 +1044,7 @@ class ChannelService {
1044
1044
  : channel.deleteFile(attachmentUpload.url));
1045
1045
  }
1046
1046
  /**
1047
- * Returns the autocomplete options for current channel members. If the channel has less than 100 members, it returns the channel members, otherwise sends a [search request](/chat/docs/javascript/query_members/#pagination-and-ordering) with the given search term.
1047
+ * Returns the autocomplete options for current channel members. If member_count is equal to the number of members in the channel, it returns the channel members, otherwise sends a [search request](/chat/docs/javascript/query_members/#pagination-and-ordering) with the given search term.
1048
1048
  * @param searchTerm Text to search for in the names of members
1049
1049
  * @returns The list of members matching the search filter
1050
1050
  */
@@ -1053,7 +1053,8 @@ class ChannelService {
1053
1053
  if (!activeChannel) {
1054
1054
  return [];
1055
1055
  }
1056
- if (Object.keys(activeChannel.state.members).length < 100) {
1056
+ if (Object.keys(activeChannel.state.members).length ===
1057
+ (activeChannel.data?.member_count ?? 0)) {
1057
1058
  return Object.values(activeChannel.state.members).filter((m) => m.user?.id !== this.chatClientService.chatClient.userID);
1058
1059
  }
1059
1060
  else {