You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Use arrow functions
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user