This commit is contained in:
Alexey Golub 2019-01-30 23:14:17 +02:00
parent b3e2dd3994
commit b6fcbac030

View file

@ -171,7 +171,7 @@ namespace DiscordChatExporter.Gui.ViewModels
// Guilds // Guilds
{ {
// Get guilds // Get guilds
var guilds = await _dataService.GetUserGuildsAsync(token); var guilds = await _dataService.GetUserGuildsAsync(token);
foreach (var guild in guilds) foreach (var guild in guilds)
{ {
@ -189,8 +189,7 @@ namespace DiscordChatExporter.Gui.ViewModels
foreach (var channel in textChannels) foreach (var channel in textChannels)
{ {
// Get category // Get category
var category = categoryChannels.FirstOrDefault(c => c.Id == channel.ParentId)?.Name ?? var category = categoryChannels.FirstOrDefault(c => c.Id == channel.ParentId)?.Name;
"<no category>";
// Create channel view model // Create channel view model
var channelViewModel = _viewModelFactory.CreateChannelViewModel(); var channelViewModel = _viewModelFactory.CreateChannelViewModel();