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.
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.