Fixed a critical issue with in-game chat.

This commit is contained in:
Kei-Luna
2026-04-29 09:01:20 +09:00
parent 720f56c708
commit c61ac08dd3
3 changed files with 31 additions and 4 deletions

View File

@@ -160,9 +160,9 @@ public class PlayerInstance(PlayerGameData data)
Sender = sendUid,
Recver = recvUid,
Emoji = emojiId ?? 0,
Text = message ?? "",
Text = ChatMessageHelper.NormalizeForClient(message),
Profile = Data.ToProfileProto(),
TimeStamp = (uint)Extensions.GetUnixMs()
TimeStamp = ChatMessageHelper.BuildClientTimestamp()
};
await SendPacket(CmdIds.NtfFriendChat, data);