Fixes #2147 - Automatically scroll the timeline to the bottom when sending a message

This commit is contained in:
Stefan Ceriu 2023-11-22 17:10:43 +02:00 committed by Stefan Ceriu
parent 9ed35e8633
commit 0dbceceac3
2 changed files with 3 additions and 0 deletions

View File

@ -464,6 +464,8 @@ class RoomScreenViewModel: RoomScreenViewModelType, RoomScreenViewModelProtocol
case .recordVoiceMessage, .previewVoiceMessage: case .recordVoiceMessage, .previewVoiceMessage:
fatalError("invalid composer mode.") fatalError("invalid composer mode.")
} }
state.timelineViewState.scrollToBottomPublisher.send(())
} }
private func trackComposerMode(_ mode: RoomScreenComposerMode) { private func trackComposerMode(_ mode: RoomScreenComposerMode) {

1
changelog.d/2147.change Normal file
View File

@ -0,0 +1 @@
Automatically scroll the timeline to the bottom when sending a message