livechat-specific Converse plugin: refactoring

This commit is contained in:
John Livingston
2024-07-25 18:03:46 +02:00
parent c6c365abf0
commit 81632fa467
8 changed files with 338 additions and 248 deletions

View File

@ -0,0 +1,11 @@
// SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
//
// SPDX-License-Identifier: AGPL-3.0-only
export function chatRoomMessageOverrides (): {[key: string]: Function} {
return {
/* By default, ConverseJS groups messages from the same users for a 10 minutes period.
* This make no sense in a livechat room. So we override isFollowup to ignore. */
isFollowup: function isFollowup () { return false }
}
}