Don't link the character name in your own chat messages
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user