diff --git a/products/ASC.People/Server/Api/ThirdpartyController.cs b/products/ASC.People/Server/Api/ThirdpartyController.cs index c4166b57f4..bd88f401c2 100644 --- a/products/ASC.People/Server/Api/ThirdpartyController.cs +++ b/products/ASC.People/Server/Api/ThirdpartyController.cs @@ -194,7 +194,7 @@ public class ThirdpartyController : ApiControllerBase { _securityContext.AuthenticateMeWithoutCookie(Core.Configuration.Constants.CoreSystem); var newUser = await CreateNewUser(GetFirstName(inDto, thirdPartyProfile), GetLastName(inDto, thirdPartyProfile), GetEmailAddress(inDto, thirdPartyProfile), passwordHash, employeeType, false); - var messageAction = employeeType == EmployeeType.User ? MessageAction.UserCreatedViaInvite : MessageAction.GuestCreatedViaInvite; + var messageAction = employeeType == EmployeeType.RoomAdmin ? MessageAction.UserCreatedViaInvite : MessageAction.GuestCreatedViaInvite; _messageService.Send(MessageInitiator.System, messageAction, _messageTarget.Create(newUser.Id), newUser.DisplayUserName(false, _displayUserSettingsHelper)); userID = newUser.Id; if (!string.IsNullOrEmpty(thirdPartyProfile.Avatar))