Fix mute not applied when server_uid in ts3server URL.

For this we now set ServerUID in the bookmark entry the bot generates in order to make the TS3Client disable its output device.
develop
Icedream 2016-04-15 00:34:20 +02:00
parent 0bca1a63ad
commit 3212134e2c
1 changed files with 3 additions and 2 deletions

View File

@ -281,7 +281,7 @@ module.exports = class TS3ClientService extends services.Service
if uri? if uri?
bookmarkId = "{5125344e-45ec-4510-9bbf-8b940628c5d0}" bookmarkId = "{5125344e-45ec-4510-9bbf-8b940628c5d0}"
await ts3settings.set "Bookmarks", bookmarkId, { bookmarkData =
Name: uriString Name: uriString
Address: uri.host or "localhost" Address: uri.host or "localhost"
Port: uri.port or 9987 Port: uri.port or 9987
@ -292,7 +292,8 @@ module.exports = class TS3ClientService extends services.Service
Autoconnect: false Autoconnect: false
ShowServerQueryClients: false ShowServerQueryClients: false
Uuid: bookmarkId Uuid: bookmarkId
}, defer() bookmarkData.ServerUID = uri.query?.server_uid if uri.query?.server_uid?
await ts3settings.set "Bookmarks", bookmarkId, bookmarkData, defer()
await ts3settings.close defer() await ts3settings.close defer()