diff --git a/CHANGELOG.md b/CHANGELOG.md index 61346d3b..c58e0650 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,9 +10,10 @@ * UX: add a label ('Choose a nickname to enter') for the anonymous nickname prompt. Fix #287. * Translation updates: Arabic, German, French, Swedish, Spanish. * New Swedish translations. -* UI/UX improvments: +* UI/UX improvements: * hide nickname changes when previous nickname was like "Anonymous 12345". Helps to improve performances when massive anonymous users are joining (#138), and prevent displaying unnecessary messages (#111). * display anonymous users at the end of the participants list (Fix #136) + * don't group "followup" messages, and always display avatar/nickname/datetime besides messages, even when it is the same user as previous one (#305) * Using patched ConverseJS for performance improvment (related to #96): * debounce MUC sidebar rendering in ConverseJS (Fix #138) * force history pruning, even if messages keep coming (Fix #140) diff --git a/conversejs/builtin.ts b/conversejs/builtin.ts index 10010488..94a05d74 100644 --- a/conversejs/builtin.ts +++ b/conversejs/builtin.ts @@ -129,6 +129,11 @@ window.initConverse = async function initConverse (initConverseParams: InitConve return this.__super__.getActionInfoMessage(code, nick, actor) } }, + ChatRoomMessage: { + /* 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 } + }, ChatRoomOccupants: { comparator: function (this: any, occupant1: any, occupant2: any): Number { // Overriding Occupants comparators, to display anonymous users at the end of the list.