fix gif, update blocking
This commit is contained in:
+1
-1
@@ -186,7 +186,7 @@ export default class Chat extends Component {
|
||||
}
|
||||
gifClick(iGif, ev) {
|
||||
ev.preventDefault();
|
||||
this.sendMessageInvoker(iGif);
|
||||
this.sendMessageInvoker(iGif.images.original.url);
|
||||
}
|
||||
getCarousel() {
|
||||
const trendingFetch = (offset) => giphyFetch.trending({ offset, limit: 5 });
|
||||
|
||||
@@ -23,6 +23,12 @@ export default class VideoListener {
|
||||
}
|
||||
updateStatus(newStatus) {
|
||||
this.video = Object.assign({}, this.video, newStatus);
|
||||
console.log(`
|
||||
Server Status: ${this.server.status}\n
|
||||
Video Status: ${this.video.status}\n
|
||||
Show Name: ${this.video.showName}\n
|
||||
Updating: ${this.isUpdating}
|
||||
`);
|
||||
if (this.server.status !== this.video.status) {
|
||||
if (this.video.showName && !this.isUpdating) this.listener(this.video);
|
||||
}
|
||||
@@ -32,6 +38,7 @@ export default class VideoListener {
|
||||
if (!this.isUpdating) {
|
||||
this.isUpdating = true;
|
||||
if (serverPlayer.updatedBy === window.localStorage.getItem('watchPartyUserUid')) {
|
||||
this.isUpdating = false;
|
||||
return;
|
||||
} else {
|
||||
// SEEK
|
||||
|
||||
Reference in New Issue
Block a user