-
Notifications
You must be signed in to change notification settings - Fork 60
Description
Describe the bug
Most of the time (although not always) I get an error message when trying to upload custom emoji. The new emoji briefly shows up, but then a flash message appears and and it vanishes from the list.
For the person who originally reported it, the emoji wasn't available at that point; when I tried to reproduce it, however, the emoji was available, and if I refreshed the list of custom emoji it was there. So it's possible there are two bugs here and I was only reproducing the first one. (
The flash error message says
Sorry, the function
handle_event (overridable 1)/3in moduleElixir.Bonfire.UI.Me.SettingsLivedidn't receive the data it was expecting -
The server log also has
Elixir.FunctionClauseError: no function clause matching in Bonfire.UI.Me.SettingsLive."handle_event (overridable 1)"/3
To Reproduce
Steps to reproduce the behavior:
- Go to Settings
- Click on Advanced / Custom Emoji
- Fill in the lable and shortcode, and select a .png file
Expected behavior
The custom emoji should appear in the list (and I shouldn't get any error messages).
Bonfire environment (please complete the following information):
- Running env: prod
- Running with Co-op Cloud and/or Docker?: Co-op Cloud
- Running version (check on your instance's sidebar): 1.0
- Running flavour: social
- Running any extra/forked extensions: not as far as I know
Client device (please complete the following information):
- Device: Macbook Pro
- OS: MacOS 15.2
- Browser: Chrome
- Browser Version: 142.0.7444.135
Additional context
Not sure if these are significant but ...
- Neither of the accounts involved in testing have admin or mod privileges.
- The other account also successfully uploaded an emoji and was able to use it. But then after deleting it, they weren't able to upload the same emoji.
- I'm using local storage rather than an S3 bucket (not sure why this should matter but just in case!)