1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-17 22:15:25 +02:00

emojipicker: use truthy check to avoid exception

Change-Id: I9c6acd8fe1c34d4ce5b2a172e04eea0f4a1e0148
This commit is contained in:
Andreas Traczyk 2024-01-02 14:41:58 -05:00 committed by Adrien Béraud
parent 32b76c8da4
commit 009a3902cb

View file

@ -174,7 +174,7 @@ Rectangle {
sendButtonVisibility: text || messageBar.fileContainer.filesToSendCount
onEmojiButtonClicked: {
if (emojiPicker !== null && emojiPicker.opened) {
if (emojiPicker && emojiPicker.opened) {
emojiPicker.closeEmojiPicker();
} else {
openEmojiPicker();