Allow party pause for hosts using external plex clients (like a remote)

This commit is contained in:
Travis Shivers 2020-08-16 14:18:45 -05:00
parent b7789c20be
commit 531fbcc20d
No known key found for this signature in database
GPG Key ID: EE4CC2891B8FCD33
1 changed files with 4 additions and 2 deletions

View File

@ -179,8 +179,10 @@ export default {
});
},
sendPartyPause: ({ getters }, isPause) => {
if (!getters.AM_I_HOST && getters.IS_PARTY_PAUSING_ENABLED) {
sendPartyPause: ({ getters, rootGetters }, isPause) => {
if ((!getters.AM_I_HOST
|| rootGetters['plexclients/GET_CHOSEN_CLIENT_ID'] !== 'PTPLAYER9PLUS10')
&& getters.IS_PARTY_PAUSING_ENABLED) {
emit({
eventName: 'partyPause',
data: isPause,