Fix sync loop
This commit is contained in:
+2
-9
@@ -16,14 +16,7 @@ import Delete from '@material-ui/icons/Delete';
|
||||
import Gif from '@material-ui/icons/Gif';
|
||||
import { Carousel } from '@giphy/react-components';
|
||||
import { GiphyFetch } from '@giphy/js-fetch-api';
|
||||
import {
|
||||
SendMessageApi,
|
||||
LeaveRoomApi,
|
||||
DeleteRoomApi,
|
||||
UpdatePlayerApi,
|
||||
getPlayerSource,
|
||||
PLAYER_STATUS,
|
||||
} from './Api';
|
||||
import { SendMessageApi, LeaveRoomApi, DeleteRoomApi, UpdatePlayerApi, PLAYER_STATUS } from './Api';
|
||||
import { goTo } from 'route-lite';
|
||||
import Create from './Create';
|
||||
import VideoListener from './VideoListener';
|
||||
@@ -105,7 +98,7 @@ export default class Chat extends Component {
|
||||
showChanged: showName !== this.state.player.showName,
|
||||
userName: window.localStorage.getItem('watchPartyUserName'),
|
||||
player: {
|
||||
status: showName !== this.state.player.showName ? PLAYER_STATUS.PAUSED : status,
|
||||
status,
|
||||
showName,
|
||||
time,
|
||||
source,
|
||||
|
||||
Reference in New Issue
Block a user