stream-chat-angular 5.1.0 → 5.1.1

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.
@@ -19,7 +19,7 @@ import transliterate from '@stream-io/transliterate';
19
19
  import * as i8$1 from 'angular-mentions';
20
20
  import { MentionModule } from 'angular-mentions';
21
21
 
22
- const version = '5.1.0';
22
+ const version = '5.1.1';
23
23
 
24
24
  /**
25
25
  * The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
@@ -241,9 +241,8 @@ class ChatClientService {
241
241
  { id: { $autocomplete: searchTerm } },
242
242
  { name: { $autocomplete: searchTerm } },
243
243
  ],
244
- id: { $ne: this.chatClient.userID },
245
244
  }); // TODO: find out why we need this typecast
246
- return result.users;
245
+ return result.users.filter((u) => u.id !== this.chatClient?.user?.id);
247
246
  }
248
247
  updatePendingInvites(e) {
249
248
  if (!this.trackPendingChannelInvites) {
@@ -1013,9 +1012,8 @@ class ChannelService {
1013
1012
  }
1014
1013
  const result = await activeChannel.queryMembers({
1015
1014
  name: { $autocomplete: searchTerm },
1016
- id: { $ne: this.chatClientService.chatClient.userID },
1017
1015
  }); // TODO: find out why we need typecast here
1018
- return Object.values(result.members);
1016
+ return result.members.filter((m) => m.user_id !== this.chatClientService.chatClient?.user?.id);
1019
1017
  }
1020
1018
  }
1021
1019
  /**