Add/remove reactions.
This commit is contained in:
@@ -222,6 +222,8 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
ReactionDelegate {
|
||||
Layout.fillWidth: true
|
||||
|
||||
Layout.topMargin: 0
|
||||
Layout.bottomMargin: 8
|
||||
Layout.leftMargin: 16
|
||||
|
||||
@@ -3,9 +3,11 @@ import QtQuick.Controls 2.12
|
||||
import QtQuick.Layouts 1.12
|
||||
import Spectral.Setting 0.1
|
||||
|
||||
RowLayout {
|
||||
Flow {
|
||||
visible: reaction || false
|
||||
|
||||
spacing: 8
|
||||
|
||||
Repeater {
|
||||
model: reaction
|
||||
|
||||
@@ -40,6 +42,8 @@ RowLayout {
|
||||
|
||||
return text
|
||||
}
|
||||
|
||||
onClicked: currentRoom.toggleReaction(eventId, modelData.reaction)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user