Improve markdown parsing to make it less volatile

Fixes #18, #20, #40
This commit is contained in:
Alexey Golub
2018-04-08 12:29:38 +03:00
parent 7ffb799136
commit 7b67cbc385
6 changed files with 323 additions and 279 deletions

View File

@@ -235,12 +235,12 @@ namespace DiscordChatExporter.Gui.ViewModels
await _exportService.ExportAsync(format, filePath, log);
// Notify completion
MessengerInstance.Send(new ShowNotificationMessage($"Export completed for channel [{channel.Name}]",
MessengerInstance.Send(new ShowNotificationMessage("Export complete",
"OPEN", () => Process.Start(filePath)));
}
catch (HttpErrorStatusCodeException ex) when (ex.StatusCode == HttpStatusCode.Forbidden)
{
MessengerInstance.Send(new ShowNotificationMessage("You don't have access to that channel"));
MessengerInstance.Send(new ShowNotificationMessage("You don't have access to this channel"));
}
IsBusy = false;