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

View File

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

View File

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

View File

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