You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Sets the given `message` as an active parent message. If `undefined` is provided, it will deleselect the current parent message.
330
346
* @param message
@@ -392,11 +408,14 @@ export class ChannelService {
392
408
* @param filters
393
409
* @param sort
394
410
* @param options
411
+
* @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
412
+
* @returns the list of channels found by the query
395
413
*/
396
414
asyncinit(
397
415
filters: ChannelFilters,
398
416
sort?: ChannelSort,
399
-
options?: ChannelOptions
417
+
options?: ChannelOptions,
418
+
shouldSetActiveChannel: boolean=true
400
419
){
401
420
this.filters=filters;
402
421
this.options=options||{
@@ -408,31 +427,27 @@ export class ChannelService {
* Resets the `activeChannel$`, `channels$` and `activeChannelMessages$` Observables. Useful when disconnecting a chat user, use in combination with [`disconnectUser`](./ChatClientService.mdx/#disconnectuser).
* Loads the next page of channels. The page size can be set in the [query option](https://getstream.io/chat/docs/javascript/query_channels/?language=javascript#query-options) object.
0 commit comments