Skip to content

Conversation

@HasselAssel
Copy link

Fix 1:
When guest plays a playlist, it would just append to the hosts playlist. Added the CLEAR_QUEUE event to sync the playlist clears.

Problem 2:
When the guest plays its playlist, due to CLEAR_QUEUE, the hosts player index is set to -1, so when the guests items are added, nothing plays and the UI gets locked in a not playing state, hence just setting the player index to the start item fixes this (via the SET_INDEX event)

import type { Permission, Profile, VideoData } from './types';

export type ConnectionEventMap = {
CLEAR_QUEUE: {};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <@typescript-eslint/no-empty-object-type> reported by reviewdog 🐶
The {} ("empty object") type allows any non-nullish value, including literals like 0 and "".

  • If that's what you want, disable this lint rule with an inline comment or configure the 'allowObjectTypes' rule option.
  • If you want a type meaning "any object", you probably want object instead.
  • If you want a type meaning "any value", you probably want unknown instead.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Comment on lines +483 to +484
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete

Suggested change
}
}
its-iris added a commit to its-iris/pear-desktop that referenced this pull request Nov 19, 2025
its-iris added a commit to its-iris/pear-desktop that referenced this pull request Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant