mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-15 00:03:38 -07:00
Refactor
This commit is contained in:
parent
b3e2dd3994
commit
b6fcbac030
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue