fix gif, update blocking

This commit is contained in:
Ayushya Amitabh
2020-05-06 13:51:55 -04:00
parent dd5bf955c5
commit 67e89b35e5
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -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 });
+7
View File
@@ -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