From a1eada96e8a491e9db9e84e206ed7b47687cac99 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Thu, 13 Jun 2024 15:10:12 +0200 Subject: [PATCH] Channel emojis: adding an empty line by default. --- client/common/configuration/elements/channel-emojis.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/common/configuration/elements/channel-emojis.ts b/client/common/configuration/elements/channel-emojis.ts index 4fbdc0bc..4cf4bfe9 100644 --- a/client/common/configuration/elements/channel-emojis.ts +++ b/client/common/configuration/elements/channel-emojis.ts @@ -55,6 +55,12 @@ export class ChannelEmojisElement extends LivechatElement { } this._channelDetailsService = new ChannelDetailsService(this.ptOptions) this.channelEmojisConfiguration = await this._channelDetailsService.fetchEmojisConfiguration(this.channelId) + if (!this.channelEmojisConfiguration.emojis.customEmojis.length) { + this.channelEmojisConfiguration.emojis.customEmojis.push({ + sn: '', + url: '' + }) + } this.actionDisabled = false // in case of reset }, args: () => []