Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Spaces at the end of sentence break styles on Skype for business #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions AuthBot/Dialogs/AzureAuthDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public virtual async Task MessageReceivedAsync(IDialogContext context, IAwaitabl
context.UserData.TryGetValue<string>(ContextConstants.MagicNumberValidated, out validated);
if (validated == "true")
{
context.Done($"Thanks {authResult.UserName}. You are now logged in. ");
context.Done($"Thanks {authResult.UserName}. You are now logged in.");
}
else if (context.UserData.TryGetValue<int>(ContextConstants.MagicNumberKey, out magicNumber))
{
Expand All @@ -71,14 +71,14 @@ public virtual async Task MessageReceivedAsync(IDialogContext context, IAwaitabl
if (msg.Text.Length >= 6 && magicNumber.ToString() == msg.Text.Substring(0, 6))
{
context.UserData.SetValue<string>(ContextConstants.MagicNumberValidated, "true");
context.Done($"Thanks {authResult.UserName}. You are now logged in. ");
context.Done($"Thanks {authResult.UserName}. You are now logged in.");
}
else
{
context.UserData.RemoveValue(ContextConstants.AuthResultKey);
context.UserData.SetValue<string>(ContextConstants.MagicNumberValidated, "false");
context.UserData.RemoveValue(ContextConstants.MagicNumberKey);
await context.PostAsync($"I'm sorry but I couldn't validate your number. Please try authenticating once again. ");
await context.PostAsync($"I'm sorry but I couldn't validate your number. Please try authenticating once again.");

context.Wait(this.MessageReceivedAsync);
}
Expand Down