Skip to content

Commit

Permalink
修复 头像应当为圆形而不是方形
Browse files Browse the repository at this point in the history
  • Loading branch information
AigioL committed Aug 24, 2021
1 parent 3781465 commit c0a3977
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ST.Client.Desktop/Services/Mvvm/UserService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ public async void RefreshUserAvaterAsync()
{
if (User.AvatarUrl!.ContainsKey(item))
{
AvaterPath = User.AvatarUrl[item];
var value = User.AvatarUrl[item];
if (!string.IsNullOrWhiteSpace(value))
{
AvaterPath = CircleImageStream.Convert(value);
}
return;
}
}
Expand Down

0 comments on commit c0a3977

Please sign in to comment.