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.
- package/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +32 -16
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel.service.js +29 -12
- package/fesm2015/stream-chat-angular.js +29 -12
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/lib/channel.service.d.ts +7 -1
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
package/lib/channel.service.d.ts
CHANGED
|
@@ -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<
|
|
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
package/src/assets/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.
|
|
1
|
+
export const version = '2.21.0';
|