mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-14 08:09:58 +03:00
fix indentation spaces and readability line spaces
This commit is contained in:
parent
b79cf1e7ad
commit
5b7ccb5a78
1 changed files with 6 additions and 4 deletions
|
@ -68,6 +68,7 @@ if (DEBUG) {
|
|||
// using bind means that we get to keep useful line numbers in the console
|
||||
debuglog = console.log.bind(console);
|
||||
}
|
||||
|
||||
export default createReactClass({
|
||||
displayName: 'RoomView',
|
||||
propTypes: {
|
||||
|
@ -624,6 +625,7 @@ export default createReactClass({
|
|||
ev.stopPropagation();
|
||||
ev.preventDefault();
|
||||
}
|
||||
|
||||
},
|
||||
onAction: function(payload) {
|
||||
switch (payload.action) {
|
||||
|
@ -632,7 +634,7 @@ export default createReactClass({
|
|||
this._checkIfAlone(this.state.room);
|
||||
break;
|
||||
case 'confetti':
|
||||
animateConfetti(this._roomView.current.offsetWidth);
|
||||
animateConfetti(this._roomView.current.offsetWidth);
|
||||
break;
|
||||
case 'post_sticker_message':
|
||||
this.injectSticker(
|
||||
|
@ -756,12 +758,12 @@ export default createReactClass({
|
|||
},
|
||||
onEventDecrypted(ev) {
|
||||
if (ev.isBeingDecrypted() || ev.isDecryptionFailure()) return;
|
||||
this.handleConfetti();
|
||||
this.handleConfetti();
|
||||
},
|
||||
handleConfetti() {
|
||||
if (this.context.isInitialSyncComplete()) {
|
||||
dis.dispatch({action: 'confetti'});
|
||||
}
|
||||
dis.dispatch({action: 'confetti'});
|
||||
}
|
||||
},
|
||||
|
||||
onRoomName: function(room) {
|
||||
|
|
Loading…
Reference in a new issue