Custom channel emoticons WIP (#130):

* fix reset when opening multiple chat
* disable default converseJs custom icons
This commit is contained in:
John Livingston
2024-06-07 12:25:04 +02:00
parent 47b580d132
commit f1cf98921f
3 changed files with 18 additions and 39 deletions

View File

@ -311,13 +311,6 @@ export class Emojis {
customEmojis.push(sanitized)
}
// For now, the frontend does not implement isCategoryEmoji.
// if there is no isCategoryEmoji, we will take the first value.
// TODO: remove this when the frontend will be able to set this.
if (!categoryEmojiFound && customEmojis.length) {
customEmojis[0].isCategoryEmoji = true
}
const result: ChannelEmojis = {
customEmojis: customEmojis
}