(Engine/Social) Report Rich Presence text for the local social user.

#OKFORGITHUB PUBLIC
[REVIEW] [at]Dan.Kaufman [at]Beth.Towns [at]Christopher.Daniel [at]Anthony.Glueck [at]Altair.Lane

#ROBOMERGE-AUTHOR: enrique.conty
#ROBOMERGE-SOURCE: CL 19579796 via CL 19579800 via CL 19579807 via CL 19579810
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v938-19570697)

[CL 19580690 by enrique conty in ue5-main branch]
This commit is contained in:
enrique conty
2022-03-31 19:27:10 -04:00
parent 6c451ce002
commit e4b5832549

View File

@@ -730,7 +730,7 @@ void USocialUser::GetRichPresenceText(FText& OutRichPresence) const
{
OutRichPresence = LOCTEXT("UserStatus_Blocked", "Blocked");
}
else if (IsFriend())
else if (IsFriend() || IsLocalUser())
{
const FOnlineUserPresence* PrimaryPresence = GetFriendPresenceInfo(ESocialSubsystem::Primary);
if (PrimaryPresence && !PrimaryPresence->Status.StatusStr.IsEmpty())