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