Implement #305: UI/UX improvement:

Don't group "followup" messages, and always display avatar/nickname/datetime besides messages, even when it is the same user as previous one.
This commit is contained in:
John Livingston
2024-01-31 18:22:26 +01:00
parent 5d4bfceb73
commit bfef57b1a5
2 changed files with 7 additions and 1 deletions

View File

@ -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.