2020-10-08 22:11:21 +03:00
|
|
|
import "../"
|
2020-05-13 07:35:26 +03:00
|
|
|
import QtQuick 2.10
|
2021-01-12 17:03:39 +03:00
|
|
|
import QtQuick.Controls 2.1
|
2020-05-13 07:35:26 +03:00
|
|
|
import im.nheko 1.0
|
|
|
|
import im.nheko.EmojiModel 1.0
|
|
|
|
|
|
|
|
ImageButton {
|
2020-10-08 22:11:21 +03:00
|
|
|
id: emojiButton
|
|
|
|
|
2020-05-13 07:35:26 +03:00
|
|
|
property var colors: currentActivePalette
|
2020-05-14 03:19:15 +03:00
|
|
|
property var emojiPicker
|
2020-05-16 22:52:51 +03:00
|
|
|
property string event_id
|
2020-05-13 07:35:26 +03:00
|
|
|
|
|
|
|
image: ":/icons/icons/ui/smile.png"
|
2020-11-16 20:41:29 +03:00
|
|
|
onClicked: emojiPicker.visible ? emojiPicker.close() : emojiPicker.show(emojiButton, function(emoji) {
|
|
|
|
TimelineManager.queueReactionMessage(event_id, emoji);
|
2021-02-10 16:32:16 +03:00
|
|
|
TimelineManager.focusMessageInput();
|
2020-11-16 20:41:29 +03:00
|
|
|
})
|
2020-06-10 04:31:19 +03:00
|
|
|
}
|