fix indentation spaces and readability line spaces

This commit is contained in:
nurjinn jafar 2020-08-24 14:04:20 +02:00
parent b79cf1e7ad
commit 5b7ccb5a78

View file

@ -68,6 +68,7 @@ if (DEBUG) {
// using bind means that we get to keep useful line numbers in the console // using bind means that we get to keep useful line numbers in the console
debuglog = console.log.bind(console); debuglog = console.log.bind(console);
} }
export default createReactClass({ export default createReactClass({
displayName: 'RoomView', displayName: 'RoomView',
propTypes: { propTypes: {
@ -624,6 +625,7 @@ export default createReactClass({
ev.stopPropagation(); ev.stopPropagation();
ev.preventDefault(); ev.preventDefault();
} }
}, },
onAction: function(payload) { onAction: function(payload) {
switch (payload.action) { switch (payload.action) {
@ -632,7 +634,7 @@ export default createReactClass({
this._checkIfAlone(this.state.room); this._checkIfAlone(this.state.room);
break; break;
case 'confetti': case 'confetti':
animateConfetti(this._roomView.current.offsetWidth); animateConfetti(this._roomView.current.offsetWidth);
break; break;
case 'post_sticker_message': case 'post_sticker_message':
this.injectSticker( this.injectSticker(
@ -756,12 +758,12 @@ export default createReactClass({
}, },
onEventDecrypted(ev) { onEventDecrypted(ev) {
if (ev.isBeingDecrypted() || ev.isDecryptionFailure()) return; if (ev.isBeingDecrypted() || ev.isDecryptionFailure()) return;
this.handleConfetti(); this.handleConfetti();
}, },
handleConfetti() { handleConfetti() {
if (this.context.isInitialSyncComplete()) { if (this.context.isInitialSyncComplete()) {
dis.dispatch({action: 'confetti'}); dis.dispatch({action: 'confetti'});
} }
}, },
onRoomName: function(room) { onRoomName: function(room) {