From e3b0d89ae9f119cf4926aa1d4eef5d0ba4973b60 Mon Sep 17 00:00:00 2001 From: Jaiwanth Date: Sat, 22 May 2021 13:33:13 +0530 Subject: [PATCH] Add some colours --- src/utils/exportUtils/HtmlExport.ts | 5 ++++- src/utils/exportUtils/exportUtils.js | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/utils/exportUtils/HtmlExport.ts b/src/utils/exportUtils/HtmlExport.ts index d234d22662..a6398e05fd 100644 --- a/src/utils/exportUtils/HtmlExport.ts +++ b/src/utils/exportUtils/HtmlExport.ts @@ -240,11 +240,14 @@ const userColors = [ "#64bf47", "#4f9cd9", "#9884e8", + "#fb6238", + "#00cdac", + "#ff5eaa", ]; //Get a color associated with string length. This is to map userId to a specific color const getUserColor = (userId: string) => { - return userColors[userId.length % 4]; + return userColors[userId.length % userColors.length]; }; diff --git a/src/utils/exportUtils/exportUtils.js b/src/utils/exportUtils/exportUtils.js index 38abe62d74..c73fd90a5a 100644 --- a/src/utils/exportUtils/exportUtils.js +++ b/src/utils/exportUtils/exportUtils.js @@ -24,7 +24,7 @@ const getTimelineConversation = (room) => { cli, timelineSet, {windowLimit: Number.MAX_VALUE}); - timelineWindow.load(null, 20); + timelineWindow.load(null, 30); const events = timelineWindow.getEvents();