mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-14 02:58:40 +03:00
Use arrow functions
This commit is contained in:
parent
6e97baf09f
commit
3358ed2792
1 changed files with 7 additions and 7 deletions
|
@ -754,14 +754,14 @@ export default createReactClass({
|
|||
}
|
||||
}
|
||||
},
|
||||
onEventDecrypted(ev) {
|
||||
if (!SettingsStore.getValue('dontShowChatEffects')) {
|
||||
if (ev.isBeingDecrypted() || ev.isDecryptionFailure() ||
|
||||
this.state.room.getUnreadNotificationCount() === 0) return;
|
||||
this.handleConfetti(ev);
|
||||
}
|
||||
onEventDecrypted: (ev) => {
|
||||
if (!SettingsStore.getValue('dontShowChatEffects')) {
|
||||
if (ev.isBeingDecrypted() || ev.isDecryptionFailure() ||
|
||||
this.state.room.getUnreadNotificationCount() === 0) return;
|
||||
this.handleConfetti(ev);
|
||||
}
|
||||
},
|
||||
handleConfetti(ev) {
|
||||
handleConfetti: (ev) => {
|
||||
if (this.state.matrixClientIsReady) {
|
||||
const messageBody = _t('sends confetti');
|
||||
if (isConfettiEmoji(ev.getContent()) || ev.getContent().body === messageBody) {
|
||||
|
|
Loading…
Reference in a new issue