forked from Nexus/nexus
always show jump to bottom when theres a contextual event
This commit is contained in:
parent
1da836e20d
commit
274256dfe4
1 changed files with 2 additions and 1 deletions
|
|
@ -14,6 +14,7 @@ final class ChatScroll({
|
||||||
required final IList<int> liveRows,
|
required final IList<int> liveRows,
|
||||||
required final GlobalKey centerKey,
|
required final GlobalKey centerKey,
|
||||||
required final ScrollController scrollController,
|
required final ScrollController scrollController,
|
||||||
|
|
||||||
required final bool atBottom,
|
required final bool atBottom,
|
||||||
required final int? highlightedEvent,
|
required final int? highlightedEvent,
|
||||||
|
|
||||||
|
|
@ -225,7 +226,7 @@ final class ChatScroll({
|
||||||
liveRows: split.live,
|
liveRows: split.live,
|
||||||
centerKey: centerKey,
|
centerKey: centerKey,
|
||||||
scrollController: scrollController,
|
scrollController: scrollController,
|
||||||
atBottom: atBottom.value,
|
atBottom: atBottom.value && contextualEvent.value == null,
|
||||||
highlightedEvent: highlightedEvent.value,
|
highlightedEvent: highlightedEvent.value,
|
||||||
keyFor: keyFor,
|
keyFor: keyFor,
|
||||||
jumpToEvent: (int rowId) async {
|
jumpToEvent: (int rowId) async {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue