Skip to content

Commit bad989d

Browse files
committed
feat: align the default reaction set with other SDKs #310
BREAKING CHANGE: the `angry` reaction is removed
1 parent c57586e commit bad989d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

โ€Ždocusaurus/angular_versioned_docs/version-5/basics/upgrade-v4.mdxโ€Ž

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ In previous versions if an error occured during channel load, the `channelServic
117117
- Event handlers with `Function` type are changed to `() => void`
118118
- Event handlers with `any` return types are changed to `void` return type
119119

120+
### Default reactions
121+
122+
To better align with other SDKs, the default reaction has been changed: the `angry` reaction is removed. You can provide your own reaction set using the [`MessageReactionsService`](../../services/MessageReactionsService/#reactions)
123+
120124
## Other changes
121125

122126
### Unused packages

โ€Žprojects/stream-chat-angular/src/lib/message-reactions.service.tsโ€Ž

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ export class MessageReactionsService {
1616
* You can provide any string as a reaction. The emoji can be provided as a string, if you want to use custom images for reactions you have to provide a [custom reactions UI](../../services/CustomTemplatesService/#messagereactionstemplate)
1717
*/
1818
reactions$ = new BehaviorSubject<{ [key in MessageReactionType]: string }>({
19+
haha: '๐Ÿ˜‚',
1920
like: '๐Ÿ‘',
20-
angry: '๐Ÿ˜ ',
2121
love: 'โค๏ธ',
22-
haha: '๐Ÿ˜‚',
23-
wow: '๐Ÿ˜ฎ',
2422
sad: '๐Ÿ˜ž',
23+
wow: '๐Ÿ˜ฎ',
2524
});
2625
/**
2726
* By default the [`MessageReactionsComponent`](../../components/MessageReactionsComponent) will display the reacting users when a reaction is clicked. You can override this with your own UI by providing a custom event handler.

0 commit comments

Comments
ย (0)