Skip to content

Commit

Permalink
Missing comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaankose committed Aug 19, 2024
1 parent 3af181e commit 3365c09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
17 changes: 4 additions & 13 deletions Wino.Core/Synchronizers/OutlookSynchronizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,10 @@ private async Task<string> GetUserProfilePictureAsync()
return Convert.ToBase64String(byteArray);
}

/// <summary>
/// Get the user's display name.
/// </summary>
/// <returns>Display name of the user.</returns>
private async Task<string> GetSenderNameAsync()
{
var userInfo = await _graphClient.Users["me"].GetAsync();
Expand Down Expand Up @@ -629,19 +633,6 @@ public override IEnumerable<IRequestBundle<RequestInformation>> CreateDraft(Batc
{
Message = message
});
//createDraftRequest.DraftPreperationRequest.CreatedLocalDraftMimeMessage.Prepare(EncodingConstraint.None);

//var plainTextBytes = Encoding.UTF8.GetBytes(createDraftRequest.DraftPreperationRequest.CreatedLocalDraftMimeMessage.ToString());
//var base64Encoded = Convert.ToBase64String(plainTextBytes);

//var requestInformation = _graphClient.Me.Messages.ToPostRequestInformation(new Message());

//requestInformation.Headers.Clear();// replace the json content header
//requestInformation.Headers.Add("Content-Type", "text/plain");

//requestInformation.SetStreamContent(new MemoryStream(Encoding.UTF8.GetBytes(base64Encoded)), "text/plain");

//return requestInformation;
}
}

Expand Down
4 changes: 3 additions & 1 deletion Wino.Mail.ViewModels/AccountManagementViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ private async Task AddNewAccountAsync()

// Local account has been created.

if (createdAccount.ProviderType != MailProviderType.IMAP4)
// Sync profile information if supported.
if (createdAccount.IsProfileInfoSyncSupported)
{
// Start profile information synchronization.
// It's only available for Outlook and Gmail synchronizers.
Expand Down Expand Up @@ -249,6 +250,7 @@ private async Task AddNewAccountAsync()
if (folderSynchronizationResult.CompletedState != SynchronizationCompletedState.Success)
throw new Exception(Translator.Exception_FailedToSynchronizeFolders);

// Sync aliases if supported.
if (createdAccount.IsAliasSyncSupported)
{
// Try to synchronize aliases for the account.
Expand Down

0 comments on commit 3365c09

Please sign in to comment.