stream-chat-angular 2.20.2 → 2.21.0

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.
@@ -144,6 +144,10 @@ export declare class ChannelService {
144
144
  * @param channel
145
145
  */
146
146
  setAsActiveChannel(channel: Channel): void;
147
+ /**
148
+ * Deselects the currently active (if any) channel
149
+ */
150
+ deselectActiveChannel(): void;
147
151
  /**
148
152
  * Sets the given `message` as an active parent message. If `undefined` is provided, it will deleselect the current parent message.
149
153
  * @param message
@@ -162,8 +166,10 @@ export declare class ChannelService {
162
166
  * @param filters
163
167
  * @param sort
164
168
  * @param options
169
+ * @param shouldSetActiveChannel Decides if the first channel in the result should be made as an active channel, or no channel should be marked as active
170
+ * @returns the list of channels found by the query
165
171
  */
166
- init(filters: ChannelFilters, sort?: ChannelSort, options?: ChannelOptions): Promise<void>;
172
+ init(filters: ChannelFilters, sort?: ChannelSort, options?: ChannelOptions, shouldSetActiveChannel?: boolean): Promise<Channel<import("stream-chat").UR, import("stream-chat").UR, import("stream-chat").LiteralStringForUnion, import("stream-chat").UR, import("stream-chat").UR, import("stream-chat").UR, import("stream-chat").UR>[]>;
167
173
  /**
168
174
  * Resets the `activeChannel$`, `channels$` and `activeChannelMessages$` Observables. Useful when disconnecting a chat user, use in combination with [`disconnectUser`](./ChatClientService.mdx/#disconnectuser).
169
175
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "2.20.2",
3
+ "version": "2.21.0",
4
4
  "description": "Angular components to create chat conversations or livestream style chat",
5
5
  "author": "GetStream",
6
6
  "homepage": "https://getstream.io/chat/",
@@ -1 +1 @@
1
- export const version = '2.20.2';
1
+ export const version = '2.21.0';