heroiclabs / nakama-dotnet

.NET client for Nakama server written in C#.
https://heroiclabs.com/docs/nakama/client-libraries/unity/
Apache License 2.0
119 stars 45 forks source link

3.12.1 Release + don't try to backfill notification sender ids after username changes #176

Closed lugehorsam closed 3 months ago

lugehorsam commented 3 months ago

If a user changes their account username, their old records for tournaments, notifications etc., won't be updated to reflect the new username.

To mitigate this, upon listing records, we automatically compare the record username to the session username and if they differ, we assume it's because of a username change and correct the record username to the session username: https://github.com/heroiclabs/nakama-dotnet/pull/148

However, for notifications, the sender id can differ from the user ID simply by being from another user. So we just don't have a way to know if the user sent it to themselves but with an older username, or if it was sent to them from another user.