Skip to content

Conversation

@norgera
Copy link
Contributor

@norgera norgera commented Feb 7, 2026

Resolves: #427

Copilot AI review requested due to automatic review settings February 7, 2026 23:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses issue #427 (“Chat Time Stamps Desynced”) by changing chat RPCs to include an explicit UTC timestamp from the sender, instead of deriving the timestamp from Photon’s server/network time values (which can drift/reset across restarts).

Changes:

  • Add a senderTimestamp (long ticks) parameter to ChatRPC and PrivateChatRPC.
  • Send DateTime.UtcNow.Ticks with chat/private chat RPC calls.
  • Use the passed tick timestamp to construct the displayed timestamp in chat/private chat handlers.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
Assets/Scripts/GameManagers/RPCManager.cs Extends chat-related PunRPC method signatures to forward an explicit sender timestamp.
Assets/Scripts/GameManagers/ChatManager.cs Sends UTC ticks with outgoing chat RPCs and uses them for incoming message timestamps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@norgera
Copy link
Contributor Author

norgera commented Feb 7, 2026

what in the world

@AutumnThyme
Copy link
Collaborator

what in the world

Don't use that, it wastes money used for bandwidth

@norgera
Copy link
Contributor Author

norgera commented Feb 7, 2026

it did it automatically, didn't realized it was enabled

@AutumnThyme
Copy link
Collaborator

it did it automatically, didn't realized it was enabled

you have to hit request review on copilot - we have no way to turn it off :^(

@AutumnThyme AutumnThyme merged commit bd5eeb8 into AoTTG-2:main Feb 10, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chat Time Stamps Desynced

2 participants