mirror of https://github.com/Nheko-Reborn/nheko
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
617 B
23 lines
617 B
// SPDX-FileCopyrightText: 2021 Nheko Contributors
|
|
//
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import "../"
|
|
import QtQuick 2.10
|
|
import QtQuick.Controls 2.1
|
|
import im.nheko 1.0
|
|
import im.nheko.EmojiModel 1.0
|
|
|
|
ImageButton {
|
|
id: emojiButton
|
|
|
|
property var colors: currentActivePalette
|
|
property var emojiPicker
|
|
property string event_id
|
|
|
|
image: ":/icons/icons/ui/smile.png"
|
|
onClicked: emojiPicker.visible ? emojiPicker.close() : emojiPicker.show(emojiButton, function(emoji) {
|
|
TimelineManager.queueReactionMessage(event_id, emoji);
|
|
TimelineManager.focusMessageInput();
|
|
})
|
|
}
|
|
|