Fix #436: Saving emojis per batch, to avoid hitting max payload limit.

This commit is contained in:
John Livingston
2024-06-20 11:14:00 +02:00
parent 01b93c1887
commit 83dd3130a1
5 changed files with 74 additions and 7 deletions

View File

@ -102,9 +102,13 @@ export class ChannelEmojisElement extends LivechatElement {
try {
this.actionDisabled = true
await this._channelDetailsService.saveEmojisConfiguration(this.channelId, this.channelEmojisConfiguration.emojis)
this.channelEmojisConfiguration = await this._channelDetailsService.saveEmojisConfiguration(
this.channelId,
this.channelEmojisConfiguration.emojis
)
this.validationError = undefined
this.ptNotifier.info(await this.ptTranslate(LOC_SUCCESSFULLY_SAVED))
this.requestUpdate('channelEmojisConfiguration')
this.requestUpdate('_validationError')
} catch (error) {
this.validationError = undefined