fix(music-together): fix user profile in queue

This commit is contained in:
JellyBrick
2025-05-12 06:19:36 +09:00
parent d10c6ec8fc
commit edea7b59e1
2 changed files with 48 additions and 21 deletions

View File

@ -125,10 +125,12 @@ export default createPlugin<
if (this.connection?.mode === 'host') {
const videoList: VideoData[] =
this.queue?.flatItems.map(
(it) =>
(it, index) =>
({
videoId: it!.videoId,
ownerId: this.connection!.id,
ownerId:
this.queue?.videoList[index]?.ownerId ??
this.connection!.id,
}) satisfies VideoData,
) ?? [];
@ -212,6 +214,7 @@ export default createPlugin<
event: ConnectionEventUnion,
conn?: DataConnection | null,
) => {
console.log('event', event, this.queue?.videoList);
this.ignoreChange = true;
switch (event.type) {