mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-02-10 20:02:31 +00:00
Refactor
This commit is contained in:
@@ -171,7 +171,7 @@ namespace DiscordChatExporter.Gui.ViewModels
|
||||
|
||||
// Guilds
|
||||
{
|
||||
// Get guilds
|
||||
// Get guilds
|
||||
var guilds = await _dataService.GetUserGuildsAsync(token);
|
||||
foreach (var guild in guilds)
|
||||
{
|
||||
@@ -189,8 +189,7 @@ namespace DiscordChatExporter.Gui.ViewModels
|
||||
foreach (var channel in textChannels)
|
||||
{
|
||||
// Get category
|
||||
var category = categoryChannels.FirstOrDefault(c => c.Id == channel.ParentId)?.Name ??
|
||||
"<no category>";
|
||||
var category = categoryChannels.FirstOrDefault(c => c.Id == channel.ParentId)?.Name;
|
||||
|
||||
// Create channel view model
|
||||
var channelViewModel = _viewModelFactory.CreateChannelViewModel();
|
||||
|
||||
Reference in New Issue
Block a user