Small chatbox api improvement

Small improvement to the chatbox api by making currentRoom explicit and removing redundant properties.
This commit is contained in:
James Graham
2023-06-05 18:20:12 +00:00
parent b5c781212c
commit 075d2fda4d
3 changed files with 79 additions and 8 deletions

View File

@@ -95,6 +95,7 @@ Kirigami.Page {
sourceComponent: ChatBox {
id: chatBox
width: parent.width
currentRoom: currentRoom
onMessageSent: {
if (!timelineViewLoader.item.atYEnd) {
timelineViewLoader.item.goToLastMessage();