Don't offer stickers for reactions
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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: [
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user