Declare currentRoom property

Make sure `currentRoom` is a property for every qml component where it's used in `chatbar`.
This commit is contained in:
James Graham
2023-08-05 16:50:06 +00:00
committed by Carl Schwan
parent 9eeff06328
commit 4b3dac025f
7 changed files with 55 additions and 34 deletions

View File

@@ -10,6 +10,11 @@ import org.kde.neochat 1.0
ColumnLayout {
id: root
/**
* @brief The current room that user is viewing.
*/
property NeoChatRoom currentRoom
property bool includeCustom: false
property bool showQuickReaction: false
@@ -151,7 +156,7 @@ ColumnLayout {
ImagePacksModel {
id: stickerPackModel
room: currentRoom
room: root.currentRoom
showStickers: true
showEmoticons: false
}
@@ -160,7 +165,7 @@ ColumnLayout {
id: stickerModel
model: stickerPackModel
packIndex: 0
room: currentRoom
room: root.currentRoom
}
EmoticonFilterModel {