From 4a74ff8a02aa73e9e239f066c92de548de6eedb7 Mon Sep 17 00:00:00 2001 From: Rimi Kanokawa Date: Sun, 1 Jun 2025 23:01:15 +0000 Subject: [PATCH] Make the names assigned to unnamed group DMs predictable (#1386) --- DiscordChatExporter.Core/Discord/Data/Channel.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/DiscordChatExporter.Core/Discord/Data/Channel.cs b/DiscordChatExporter.Core/Discord/Data/Channel.cs index 43642b8a..93e6aca2 100644 --- a/DiscordChatExporter.Core/Discord/Data/Channel.cs +++ b/DiscordChatExporter.Core/Discord/Data/Channel.cs @@ -78,6 +78,7 @@ public partial record Channel ?? json.GetPropertyOrNull("recipients") ?.EnumerateArrayOrNull() ?.Select(User.Parse) + .OrderBy(u => u.Id) .Select(u => u.DisplayName) .Pipe(s => string.Join(", ", s)) // Fallback