mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Show current group members in syncplay group dialog
This commit is contained in:
parent
f4cb4e8fa0
commit
ea3fc5fe86
3 changed files with 18 additions and 1 deletions
|
@ -193,10 +193,19 @@ class Manager {
|
|||
this.queueCore.updatePlayQueue(apiClient, cmd.Data);
|
||||
break;
|
||||
case 'UserJoined':
|
||||
|
||||
toast(globalize.translate('MessageSyncPlayUserJoined', cmd.Data));
|
||||
if (!this.groupInfo.Participants) {
|
||||
this.groupInfo.Participants = [cmd.Data];
|
||||
} else {
|
||||
this.groupInfo.Participants.push(cmd.Data);
|
||||
}
|
||||
break;
|
||||
case 'UserLeft':
|
||||
toast(globalize.translate('MessageSyncPlayUserLeft', cmd.Data));
|
||||
if (this.groupInfo.Participants) {
|
||||
this.groupInfo.Participants = this.groupInfo.Participants.filter((user) => user !== cmd.Data);
|
||||
}
|
||||
break;
|
||||
case 'GroupJoined':
|
||||
cmd.Data.LastUpdatedAt = new Date(cmd.Data.LastUpdatedAt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue