use UserProfileProperties instead of obsolete UserProfileData

This commit is contained in:
UbitUmarov
2022-06-21 00:03:12 +01:00
parent f085d5b3c1
commit 6566837f3b
4 changed files with 57 additions and 70 deletions

View File

@@ -8582,17 +8582,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
return;
AvatarPropertiesUpdatePacket.PropertiesDataBlock Properties = avatarProps.PropertiesData;
UserProfileData UserProfile = new UserProfileData();
UserProfile.ID = m_agentId;
UserProfile.AboutText = Utils.BytesToString(Properties.AboutText);
UserProfile.FirstLifeAboutText = Utils.BytesToString(Properties.FLAboutText);
UserProfile.FirstLifeImage = Properties.FLImageID;
UserProfile.Image = Properties.ImageID;
UserProfile.ProfileUrl = Utils.BytesToString(Properties.ProfileURL);
UserProfile.UserFlags &= ~3;
UserProfile.UserFlags |= Properties.AllowPublish ? 1 : 0;
UserProfile.UserFlags |= Properties.MaturePublish ? 2 : 0;
UserProfileProperties UserProfile = new UserProfileProperties
{
UserId = AgentId,
WebUrl = Utils.BytesToString(Properties.ProfileURL),
ImageId = Properties.ImageID,
FirstLifeImageId = Properties.FLImageID,
AboutText = Utils.BytesToString(Properties.AboutText),
FirstLifeText = Utils.BytesToString(Properties.FLAboutText),
PublishProfile = Properties.AllowPublish,
PublishMature = Properties.MaturePublish
};
OnUpdateAvatarProperties?.Invoke(this, UserProfile);
}