Fix profile fetch permission issues for Exchange (#401)

This commit is contained in:
Xinyang Chen
2024-09-29 01:45:59 +03:00
committed by GitHub
parent e897182b23
commit b86643c052

View File

@@ -534,7 +534,7 @@ namespace Wino.Core.Synchronizers
/// <returns>Display name of the user.</returns>
private async Task<string> GetSenderNameAsync()
{
var userInfo = await _graphClient.Users["me"].GetAsync();
var userInfo = await _graphClient.Me.GetAsync();
return userInfo.DisplayName;
}