Don't link the character name in your own chat messages

This commit is contained in:
Loporrit
2025-02-02 09:46:56 +00:00
parent 7e0627793d
commit cd114c3408

View File

@@ -109,8 +109,15 @@ public class ChatService : DisposableMediatorSubscriberBase
if (color != 0)
msg.AddUiForeground((ushort)color);
msg.AddText($"[SS{shellNumber}]<");
// TODO: Don't link to the local player because it lets you do invalid things
if (message.ChatMsg.Sender.UID == _apiController.UID)
{
// Don't link to your own character
msg.AddText(chatMsg.SenderName);
}
else
{
msg.Add(new PlayerPayload(chatMsg.SenderName, chatMsg.SenderHomeWorldId));
}
msg.AddText("> ");
msg.Append(SeString.Parse(message.ChatMsg.PayloadContent));
if (color != 0)