mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-14 18:41:30 +03:00
Optimized naming
This commit is contained in:
parent
335774b6ff
commit
fbe2d7e0f8
1 changed files with 3 additions and 3 deletions
|
@ -822,15 +822,15 @@ export default class RoomView extends React.Component<IProps, IState> {
|
||||||
|
|
||||||
private onEventDecrypted = (ev) => {
|
private onEventDecrypted = (ev) => {
|
||||||
if (ev.isDecryptionFailure()) return;
|
if (ev.isDecryptionFailure()) return;
|
||||||
this.handleConfetti(ev);
|
this.handleEffects(ev);
|
||||||
};
|
};
|
||||||
|
|
||||||
private onEvent = (ev) => {
|
private onEvent = (ev) => {
|
||||||
if (ev.isBeingDecrypted() || ev.isDecryptionFailure()) return;
|
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.room.getUnreadNotificationCount() === 0) return;
|
||||||
if (this.state.matrixClientIsReady) {
|
if (this.state.matrixClientIsReady) {
|
||||||
effects.forEach(effect => {
|
effects.forEach(effect => {
|
||||||
|
|
Loading…
Reference in a new issue