GIF bug in chat?

AI-generated summary

A user reports a GIF bug in the chat feature, with console errors when selecting GIFs sok777. Another user, JammyDodger, suggests checking if the site is updated to the latest version. Arkshine identifies the issue as related to a recent change requiring Discourse 3.2.0.beta4 and recommends updating. After updating, sok777 encounters a new issue where the modal window fails to open sok777. Arkshine clarifies that Discourse itself must also be updated, noting it works fine on their end. sok777 confirms everything is up to date. Arkshine then reproduces the issue when inserting from chat and shares a fix via a pull request Arkshine.

I can see chat is working as expected here but noticed an error trying to select GIFs on our site.
Here’s what’s showing on the console:

1 Like

Just to check, is your site updated to Latest?

2 Likes

It works without errors on my side with the latest version.

It looks like a recent change FIX: correctly uses chat draft property by jjaffeux · Pull Request #54 · discourse/discourse-gifs · GitHub requires 3.2.0.beta4 ; so I would assume it’s a good idea to use the latest version here, as suggested Jammy.

2 Likes

Sounds like this is the issue. Will try to update and report back!

4 Likes

New error after upgrading, modal window not even opening :confused:
Screenshot 2023-12-17 at 16.00.04

1 Like

Did you update Discourse as well? I can see you’re using the latest theme component version, so I would assume your Discourse is not up to date. (It works fine on my side)

All up to date

Oh, I see. You insert from the chat. I can reproduce.

1 Like

I made a PR :+1:

https://github.com/discourse/discourse-gifs/pull/60

2 Likes