Skip to content

Commit

Permalink
fix(chat): client cache update check
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojiuwo1993 committed Oct 24, 2023
1 parent 60cf7cf commit b386910
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Servers/Chat/src/Application/StorageOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ public void RemoveChannel(Channel channel)

public void UpdateClient(IShareClient client)
{
// we do not update client info when its nickname is not registered
if (client.Info.NickName is null)
{
return;
}
var data = new ClientInfoCache
{
NickName = client.Info.NickName,
Expand Down

0 comments on commit b386910

Please sign in to comment.