You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Optimized naming
This commit is contained in:
@ -822,15 +822,15 @@ export default class RoomView extends React.Component<IProps, IState> {
|
||||
|
||||
private onEventDecrypted = (ev) => {
|
||||
if (ev.isDecryptionFailure()) return;
|
||||
this.handleConfetti(ev);
|
||||
this.handleEffects(ev);
|
||||
};
|
||||
|
||||
private onEvent = (ev) => {
|
||||
if (ev.isBeingDecrypted() || ev.isDecryptionFailure()) return;
|
||||
this.handleConfetti(ev);
|
||||
this.handleEffects(ev);
|
||||
};
|
||||
|
||||
private handleConfetti = (ev) => {
|
||||
private handleEffects = (ev) => {
|
||||
if (this.state.room.getUnreadNotificationCount() === 0) return;
|
||||
if (this.state.matrixClientIsReady) {
|
||||
effects.forEach(effect => {
|
||||
|
Reference in New Issue
Block a user