@@ -439,6 +439,9 @@ func (m *Chat) ToggleExpandedSelectedItem() {
439439 if expandable, ok := m.list.SelectedItem().(chat.Expandable); ok {
440440 expandable.ToggleExpanded()
441441 m.list.ScrollToIndex(m.list.Selected())
442+ if m.list.AtBottom() {
443+ m.list.ScrollToBottom()
444+ }
442445 }
443446}
444447
@@ -547,6 +550,9 @@ func (m *Chat) HandleDelayedClick(msg DelayedClickMsg) bool {
547550 expandable.ToggleExpanded()
548551 }
549552 m.list.ScrollToIndex(m.list.Selected())
553+ if m.list.AtBottom() {
554+ m.list.ScrollToBottom()
555+ }
550556 return handled
551557 }
552558