Merge branch 'main' of https://github.com/Penumbra-Sync/client
This commit is contained in:
		| @@ -1,6 +1,8 @@ | |||||||
| using System.Collections.Generic; | using System; | ||||||
|  | using System.Collections.Generic; | ||||||
| using System.Threading.Tasks; | using System.Threading.Tasks; | ||||||
| using MareSynchronos.API; | using MareSynchronos.API; | ||||||
|  | using MareSynchronos.Utils; | ||||||
| using Microsoft.AspNetCore.SignalR.Client; | using Microsoft.AspNetCore.SignalR.Client; | ||||||
|  |  | ||||||
| namespace MareSynchronos.WebAPI; | namespace MareSynchronos.WebAPI; | ||||||
| @@ -18,7 +20,14 @@ public partial class ApiController | |||||||
|  |  | ||||||
|     public async Task UserPushData(CharacterCacheDto characterCache, List<string> visibleCharacterIds) |     public async Task UserPushData(CharacterCacheDto characterCache, List<string> visibleCharacterIds) | ||||||
|     { |     { | ||||||
|         await _mareHub!.SendAsync(nameof(UserPushData), characterCache, visibleCharacterIds).ConfigureAwait(false); |         try | ||||||
|  |         { | ||||||
|  |             await _mareHub!.InvokeAsync(nameof(UserPushData), characterCache, visibleCharacterIds).ConfigureAwait(false); | ||||||
|  |         } | ||||||
|  |         catch (Exception ex) | ||||||
|  |         { | ||||||
|  |             Logger.Warn("Failed to Push character data: " + ex.Message); | ||||||
|  |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     public async Task<List<ClientPairDto>> UserGetPairedClients() |     public async Task<List<ClientPairDto>> UserGetPairedClients() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 rootdarkarchon
					rootdarkarchon