stream-chat-angular 4.28.0 → 4.29.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.
@@ -189,6 +189,8 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
189
189
  set shouldMarkActiveChannelAsRead(shouldMarkActiveChannelAsRead: boolean);
190
190
  /**
191
191
  * Sets the given `channel` as active and marks it as read.
192
+ * If the channel wasn't previously part of the channel, it will be added to the beginning of the list.
193
+ *
192
194
  * @param channel
193
195
  */
194
196
  setAsActiveChannel(channel: Channel<T>): void;
@@ -296,6 +298,12 @@ export declare class ChannelService<T extends DefaultStreamChatGenerics = Defaul
296
298
  * @param message The message to select, if called with `undefined`, it deselects the message
297
299
  */
298
300
  selectMessageToQuote(message: StreamMessage | undefined): void;
301
+ /**
302
+ * Add a new channel to the channel list
303
+ * The channel will be added to the beginning of the channel list
304
+ * @param channel
305
+ */
306
+ addChannel(channel: Channel<T>): void;
299
307
  private sendMessageRequest;
300
308
  /**
301
309
  * Jumps to the selected message inside the message list, if the message is not yet loaded, it'll load the message (and it's surroundings) from the API.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-chat-angular",
3
- "version": "4.28.0",
3
+ "version": "4.29.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 = '4.28.0';
1
+ export const version = '4.29.0';