Bug 454733 - Custom Emojis can't be created
Summary: Custom Emojis can't be created
Status: RESOLVED FIXED
Alias: None
Product: NeoChat
Classification: Applications
Component: General (other bugs)
Version First Reported In: unspecified
Platform: Other All
: NOR normal
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-02 10:25 UTC by Jan Bidler
Modified: 2022-06-02 11:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Bidler 2022-06-02 10:25:12 UTC
SUMMARY
The "create custom emojis" feature seems to not work.

STEPS TO REPRODUCE
1. Open app and sign yourself in
2. Go to Settings -> Custom Emoji
3. Type in a name and upload a picture of a wished custom emoji

OBSERVED RESULT
After the picture has been selected, no emoji seems to get added. The name for the custom emoji is still in the textbox, and the "Upload image" button does not react anymore until the settings are closed and reopened.

EXPECTED RESULT
After the picture has been selected, a custom emoji should have been created.

SOFTWARE/OS VERSIONS
 - **Distribution / Platform:** Windows 10 21H2, Android 7
 - **Qt Version:** 5.15.2
 - **NeoChat version:** 22.04
 - **Quotient version:** None shown in Settings
 - **Matrix server:** Account on matrix.org, issue is irrelevant to server of rooms.

ADDITIONAL INFORMATION
This gets printed in the console from the moment I click the "upload Image" button, until I confirm my Image selection:
```
qrc:/imports/NeoChat/Settings/Emoticons.qml:117: ReferenceError: StandardPaths is not defined
qrc:/imports/NeoChat/Settings/Emoticons.qml:99: ReferenceError: emojiField is not defined
```
The responsible lines of code are here:  
https://invent.kde.org/network/neochat/-/blob/master/imports/NeoChat/Settings/Emoticons.qml#L117  
https://invent.kde.org/network/neochat/-/blob/master/imports/NeoChat/Settings/Emoticons.qml#L99