Fix sync loop

This commit is contained in:
Ayushya Amitabh
2020-05-05 22:27:52 -04:00
parent 8aef416eda
commit c4bb242d7a
3 changed files with 43 additions and 42 deletions
+2 -9
View File
@@ -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,