From 6b543529aa2dd660ed397eb45ed8b2936664e8ef Mon Sep 17 00:00:00 2001 From: azyges <229218900+azyges@users.noreply.github.com> Date: Wed, 17 Dec 2025 03:42:54 +0900 Subject: [PATCH 1/2] removes nasty resolve dto and method --- LightlessSyncAPI/Dto/Chat/ChatDtos.cs | 11 +++-------- LightlessSyncAPI/SignalR/ILightlessHub.cs | 14 +++++++------- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/LightlessSyncAPI/Dto/Chat/ChatDtos.cs b/LightlessSyncAPI/Dto/Chat/ChatDtos.cs index ae9adca..10836da 100644 --- a/LightlessSyncAPI/Dto/Chat/ChatDtos.cs +++ b/LightlessSyncAPI/Dto/Chat/ChatDtos.cs @@ -61,15 +61,10 @@ public readonly record struct ChatReportSubmitDto( string? AdditionalContext); [MessagePackObject(keyAsPropertyName: true)] -public readonly record struct ChatParticipantResolveRequestDto( +public readonly record struct ChatParticipantMuteRequestDto( ChatChannelDescriptor Channel, - string Token); - -[MessagePackObject(keyAsPropertyName: true)] -public readonly record struct ChatParticipantResolveResultDto( - ChatChannelDescriptor Channel, - ChatSenderDescriptor Sender, - UserProfileDto? Profile); + string Token, + bool Mute); [MessagePackObject(keyAsPropertyName: true)] public readonly record struct ZoneChatChannelInfoDto( diff --git a/LightlessSyncAPI/SignalR/ILightlessHub.cs b/LightlessSyncAPI/SignalR/ILightlessHub.cs index 1d635ed..2722cfb 100644 --- a/LightlessSyncAPI/SignalR/ILightlessHub.cs +++ b/LightlessSyncAPI/SignalR/ILightlessHub.cs @@ -8,9 +8,9 @@ using LightlessSync.API.Dto.User; namespace LightlessSync.API.SignalR; -public interface ILightlessHub -{ - const int ApiVersion = 34; +public interface ILightlessHub +{ + const int ApiVersion = 34; const string Path = "/lightless"; Task CheckClientHealth(); @@ -112,7 +112,7 @@ public interface ILightlessHub Task GposeLobbyPushPoseData(PoseData poseData); Task GposeLobbyPushWorldData(WorldData worldData); Task UpdateChatPresence(ChatPresenceUpdateDto presence); - Task SendChatMessage(ChatSendRequestDto request); - Task ReportChatMessage(ChatReportSubmitDto request); - Task ResolveChatParticipant(ChatParticipantResolveRequestDto request); -} + Task SendChatMessage(ChatSendRequestDto request); + Task ReportChatMessage(ChatReportSubmitDto request); + Task SetChatParticipantMute(ChatParticipantMuteRequestDto request); +} -- 2.49.1 From efc0ef09f9a3bf774f5e946a3b5e473865338be2 Mon Sep 17 00:00:00 2001 From: azyges Date: Thu, 18 Dec 2025 05:06:06 +0900 Subject: [PATCH 2/2] move to net10 --- LightlessSyncAPI/LightlessSync.API.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LightlessSyncAPI/LightlessSync.API.csproj b/LightlessSyncAPI/LightlessSync.API.csproj index 6b7f2aa..902d660 100644 --- a/LightlessSyncAPI/LightlessSync.API.csproj +++ b/LightlessSyncAPI/LightlessSync.API.csproj @@ -1,7 +1,7 @@ - - net8.0 + + net10.0 enable enable -- 2.49.1