Skip to content

Commit

Permalink
don't try to backfill notif sender ids after username changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lugehorsam committed May 30, 2024
1 parent f20dc32 commit b53f12c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Nakama/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -947,14 +947,6 @@ public async Task<IApiNotificationList> ListNotificationsAsync(ISession session,
() => _apiClient.ListNotificationsAsync(session.AuthToken, limit, cacheableCursor, canceller),
new RetryHistory(session, retryConfiguration ?? GlobalRetryConfiguration, canceller));

foreach (var notification in response.Notifications)
{
if (!session.Username.Equals(notification.SenderId) && notification is ApiNotification n)
{
n.SenderId = session.UserId;
}
}

return response;
}

Expand Down

0 comments on commit b53f12c

Please sign in to comment.