Ensure speech bubble cap is always respected (#32223)

Ensure speech bubble cap is respected, even when messages are sent very fast
This commit is contained in:
Evelyn Gordon
2025-03-10 08:28:08 -04:00
committed by GitHub
parent d1b714bcf8
commit e0d6944822

View File

@@ -467,8 +467,9 @@ public sealed class ChatUIController : UIController
if (existing.Count > SpeechBubbleCap) if (existing.Count > SpeechBubbleCap)
{ {
// Get the oldest to start fading fast. // Get the next speech bubble to fade
var last = existing[0]; // Any speech bubbles before it are already fading
var last = existing[^(SpeechBubbleCap + 1)];
last.FadeNow(); last.FadeNow();
} }
} }