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

@ -20,7 +20,7 @@ public class GetDirectMessageChannelsCommand : TokenCommandBase
var textChannels = channels
.Where(c => c.Kind.IsText())
.OrderBy(c => c.Category.Position)
.OrderByDescending(c => c.LastMessageId)
.ThenBy(c => c.Name)
.ToArray();