Added shuffle

This commit is contained in:
Torben Pi Jensen
2024-02-03 19:18:22 +01:00
parent 993501f049
commit 01b8319aef
6 changed files with 26 additions and 4 deletions
+3 -1
View File
@@ -16,7 +16,7 @@ import {
ReorderSong,
SearchSong,
SearchSongResult,
SendChatMessage,
SendChatMessage, Shuffle,
SkipSong,
SongLikes,
StuenMessage,
@@ -75,6 +75,8 @@ export default function parseMessage(message: string): StuenMessage | null {
return new RemoveSongFromPlaylist(data.song, data.playlist);
case 'ToggleTag':
return new ToggleTag(data.song, data.tag);
case 'Shuffle':
return new Shuffle();
default:
console.error('Unknown message type:', data.type);
return null;