Skip to content

Commit

Permalink
123 456 789 10
Browse files Browse the repository at this point in the history
  • Loading branch information
ReeZer2 committed Feb 23, 2025
1 parent 26ec7c4 commit 2cdf220
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Content.Server/Chat/Systems/ChatSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -996,17 +996,15 @@ private string GetChatName(EntityUid entity)
return null;

if (TryComp<PdaComponent>(idUid, out var pda) &&
pda.ContainedId != null &&
TryComp<IdCardComponent>(pda.ContainedId, out var idComp) &&
!string.IsNullOrEmpty(idComp.FullName))
{
return idComp.FullName;
}

if (TryComp<IdCardComponent>(pda?.ContainedId ?? idUid, out var id) && !string.IsNullOrEmpty(id.FullName))
return id.FullName;

return null;
return TryComp<IdCardComponent>(pda?.ContainedId ?? idUid, out var id) && !string.IsNullOrEmpty(id.FullName)
? id.FullName
: null;
}

private bool IsIdentityHidden(EntityUid entity)
Expand Down

0 comments on commit 2cdf220

Please sign in to comment.