feat: scroll to bottom on new user message

when the user sends a new message, and if the user is at an older position
in the timeline, then neochat should automatically scroll to the latest message and mark all the messages as read
This commit is contained in:
Srevin Saju
2021-04-02 22:37:31 +00:00
committed by Carl Schwan
parent 0b2bd84085
commit 4e02fa8290
2 changed files with 14 additions and 2 deletions

View File

@@ -16,6 +16,7 @@ Item {
property alias inputFieldText: chatBar.inputFieldText
signal fancyEffectsReasonFound(string fancyEffect)
signal messageSent()
Kirigami.Theme.colorSet: Kirigami.Theme.View
@@ -150,6 +151,7 @@ Item {
onMessageSent: {
closeAll()
checkForFancyEffectsReason()
root.messageSent();
}
}