Added syncshell profile related items.

This commit is contained in:
CakeAndBanana
2025-10-10 06:42:59 +02:00
parent 46db5c87e0
commit 98c3a2c7f8
13 changed files with 91 additions and 42 deletions

View File

@@ -192,7 +192,7 @@ public partial class ApiController
public Task Client_UserUpdateProfile(UserDto dto)
{
Logger.LogDebug("Client_UserUpdateProfile: {dto}", dto);
ExecuteSafely(() => Mediator.Publish(new ClearProfileDataMessage(dto.User)));
ExecuteSafely(() => Mediator.Publish(new ClearProfileUserDataMessage(dto.User)));
return Task.CompletedTask;
}
@@ -377,6 +377,12 @@ public partial class ApiController
_lightlessHub!.On(nameof(Client_UserUpdateProfile), act);
}
public void ClientGroupSendProfile(Action<GroupProfileDto> act)
{
if (_initialized) return;
_lightlessHub!.On(nameof(Client_GroupSendProfile), act);
}
public void OnUserUpdateSelfPairPermissions(Action<UserPermissionsDto> act)
{
if (_initialized) return;