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/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 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); +}