Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gif popup): close the popup after sending a GIF #6364

Merged

Conversation

caybro
Copy link
Member

@caybro caybro commented Jul 5, 2022

Close #6083

What does the PR do

By default, enable automatically closing the GIF popup after having sent a GIF to the chat

Affected areas

Chat, chat input

Screenshot of functionality

Zaznam.obrazovky.z.5.7.2022.10.53.33.webm

@caybro caybro linked an issue Jul 5, 2022 that may be closed by this pull request
@caybro caybro changed the title fix(gif popup): fix the popup after sending a GIF fix(gif popup): close the popup after sending a GIF Jul 5, 2022
@status-im-auto
Copy link
Member

status-im-auto commented Jul 5, 2022

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
⁉️ cb10128 #1 2022-07-05 08:58:45 ~2 min linux-cpp 📄log
✔️ cb10128 #1 2022-07-05 09:04:32 ~8 min macos 📦dmg
✔️ cb10128 #1 2022-07-05 09:06:29 ~10 min linux 📦tgz
✔️ cb10128 #1 2022-07-05 09:18:28 ~22 min windows 📦exe

@@ -35,7 +35,7 @@ Rectangle {
property var emojiPopup: null
// Use this to only enable the Connections only when this Input opens the Emoji popup
property bool emojiPopupOpened: false
property bool closeGifPopupAfterSelection: false
property bool closeGifPopupAfterSelection: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonder why this was false in the first place..

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea... well it was introduced earlier to prevent a crash (due to adding a GIF to favs while the popup was being destroyed), but even more curious is the fact that this and the emoji popup have totally different logic for opening/closing/handling the image selected

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh and those callbacks 😮

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The boolean was introduced here: a70d800

@Hbouaz Hbouaz added the tested label Jul 5, 2022
@caybro caybro merged commit 94bf0a0 into master Jul 5, 2022
@caybro caybro deleted the 6083-the-gif-dialog-doesnt-disappear-after-sending-a-gif branch July 5, 2022 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The GIF dialog doesn't disappear after sending a GIF
5 participants