add trimming to uid and gids
This commit is contained in:
		| @@ -24,7 +24,7 @@ public partial class ApiController | |||||||
|     public async Task SendPairedClientAddition(string uid) |     public async Task SendPairedClientAddition(string uid) | ||||||
|     { |     { | ||||||
|         if (!IsConnected || string.Equals(SecretKey, "-", System.StringComparison.Ordinal)) return; |         if (!IsConnected || string.Equals(SecretKey, "-", System.StringComparison.Ordinal)) return; | ||||||
|         await _mareHub!.SendAsync(Api.SendUserPairedClientAddition, uid).ConfigureAwait(false); |         await _mareHub!.SendAsync(Api.SendUserPairedClientAddition, uid.Trim()).ConfigureAwait(false); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     public async Task SendPairedClientPauseChange(string uid, bool paused) |     public async Task SendPairedClientPauseChange(string uid, bool paused) | ||||||
|   | |||||||
| @@ -34,7 +34,7 @@ public partial class ApiController | |||||||
|     public async Task<bool> SendGroupJoin(string gid, string password) |     public async Task<bool> SendGroupJoin(string gid, string password) | ||||||
|     { |     { | ||||||
|         if (!IsConnected || string.Equals(SecretKey, "-", System.StringComparison.Ordinal)) return false; |         if (!IsConnected || string.Equals(SecretKey, "-", System.StringComparison.Ordinal)) return false; | ||||||
|         return await _mareHub!.InvokeAsync<bool>(Api.InvokeGroupJoin, gid, password).ConfigureAwait(false); |         return await _mareHub!.InvokeAsync<bool>(Api.InvokeGroupJoin, gid.Trim(), password).ConfigureAwait(false); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     public async Task SendGroupChangeInviteState(string gid, bool opened) |     public async Task SendGroupChangeInviteState(string gid, bool opened) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Stanley Dimant
					Stanley Dimant