Make the names assigned to unnamed group DMs predictable (#1386)

This commit is contained in:
Rimi Kanokawa 2025-06-01 23:01:15 +00:00 committed by GitHub
parent 7dfcf5ac19
commit 4a74ff8a02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,6 +78,7 @@ public partial record Channel
?? json.GetPropertyOrNull("recipients") ?? json.GetPropertyOrNull("recipients")
?.EnumerateArrayOrNull() ?.EnumerateArrayOrNull()
?.Select(User.Parse) ?.Select(User.Parse)
.OrderBy(u => u.Id)
.Select(u => u.DisplayName) .Select(u => u.DisplayName)
.Pipe(s => string.Join(", ", s)) .Pipe(s => string.Join(", ", s))
// Fallback // Fallback