Don't offer stickers for reactions

This commit is contained in:
Tobias Fella
2025-04-14 17:04:12 +02:00
parent b8d4ffcedc
commit 854aa34e52
4 changed files with 6 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ QQC2.Popup {
property bool includeCustom: false
property bool closeOnChosen: true
property bool showQuickReaction: false
property bool showStickers: true
signal chosen(string emoji)
@@ -71,6 +72,7 @@ QQC2.Popup {
currentRoom: root.currentRoom
includeCustom: root.includeCustom
showQuickReaction: root.showQuickReaction
showStickers: root.showStickers
onChosen: emoji => {
root.chosen(emoji);
if (root.closeOnChosen) {

View File

@@ -17,6 +17,7 @@ ColumnLayout {
property bool includeCustom: false
property bool showQuickReaction: false
property bool showStickers: true
readonly property var currentEmojiModel: {
if (includeCustom) {
@@ -43,6 +44,7 @@ ColumnLayout {
id: types
Layout.fillWidth: true
Kirigami.Theme.colorSet: Kirigami.Theme.View
visible: root.showStickers
background: null
actions: [

View File

@@ -169,6 +169,7 @@ QQC2.Control {
id: emojiDialog
currentRoom: root.currentRoom
showQuickReaction: true
showStickers: false
onChosen: emoji => {
root.currentRoom.toggleReaction(root.delegate.eventId, emoji);
if (!Kirigami.Settings.isMobile) {

View File

@@ -105,6 +105,7 @@ Flow {
onClicked: {
var dialog = emojiDialog.createObject(reactButton);
dialog.showStickers = false;
dialog.chosen.connect(emoji => {
root.Message.room.toggleReaction(root.eventId, emoji);
if (!Kirigami.Settings.isMobile) {