Refactoring
This commit is contained in:
parent
1c6d28b861
commit
d4ec1dd775
4 changed files with 18 additions and 7 deletions
|
@ -815,7 +815,7 @@ export default class RoomView extends React.Component<IProps, IState> {
|
|||
private handleConfetti = (ev) => {
|
||||
if (this.state.room.getUnreadNotificationCount() === 0) return;
|
||||
if (this.state.matrixClientIsReady) {
|
||||
effects.map(effect => {
|
||||
effects.forEach(effect => {
|
||||
if (containsEmoji(ev.getContent(), effect.emojis) || ev.getContent().msgtype === effect.msgType) {
|
||||
dis.dispatch({action: `effects.${effect.command}`});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue