Sort DMs by last message and avoid grouping them in GUI

Closes #271
This commit is contained in:
Oleksii Holub
2022-06-28 17:23:01 +03:00
parent 2c7986c4e6
commit 2463cb5087
17 changed files with 124 additions and 37 deletions

View File

@@ -44,6 +44,8 @@ public class DashboardViewModel : PropertyChangedBase
public Guild? SelectedGuild { get; set; }
public bool IsDirectMessageGuildSelected => SelectedGuild?.Id == Guild.DirectMessages.Id;
public IReadOnlyList<Channel>? AvailableChannels => SelectedGuild is not null
? GuildChannelMap?[SelectedGuild]
: null;