v1.3.1-beta/patch pause on send
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "watch-party-crx",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@giphy/js-fetch-api": "^1.5.8",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "Watch Party",
|
||||
"short_name": "WP",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"description": "Watch streamed content together.",
|
||||
"background": {
|
||||
"page": "popup.html"
|
||||
|
||||
+2
-1
@@ -111,7 +111,8 @@ export default class Chat extends Component {
|
||||
return;
|
||||
}
|
||||
this.setState(response);
|
||||
if (response.player) this.mVideoListener.doUpdate(response.player);
|
||||
if (response.player && this.state.player !== response.player)
|
||||
this.mVideoListener.doUpdate(response.player);
|
||||
const pcc = document.querySelector('.thread-container');
|
||||
if (pcc) pcc.scrollTop = pcc.scrollHeight;
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { PLAYER_STATUS, getPlayerSource, PLAYER_SOURCE } from './Api';
|
||||
import { PLAYER_STATUS, getPlayerSource, PLAYER_SOURCE, LocalData } from './Api';
|
||||
|
||||
const templateListener = (video) => console.log('MISSING VIDEO LISTENER');
|
||||
|
||||
@@ -49,7 +49,7 @@ export default class VideoListener {
|
||||
if (
|
||||
this.isUpdating === false &&
|
||||
serverPlayer.showName === this.video.showName &&
|
||||
serverPlayer.updatedBy !== window.localStorage.getItem('watchPartyUserUid')
|
||||
serverPlayer.updatedBy !== LocalData().userUid
|
||||
) {
|
||||
this.isUpdating = true;
|
||||
if (this.video.element) {
|
||||
|
||||
Reference in New Issue
Block a user