Add some colours
This commit is contained in:
parent
bb81515cdd
commit
e3b0d89ae9
2 changed files with 5 additions and 2 deletions
|
@ -240,11 +240,14 @@ const userColors = [
|
||||||
"#64bf47",
|
"#64bf47",
|
||||||
"#4f9cd9",
|
"#4f9cd9",
|
||||||
"#9884e8",
|
"#9884e8",
|
||||||
|
"#fb6238",
|
||||||
|
"#00cdac",
|
||||||
|
"#ff5eaa",
|
||||||
];
|
];
|
||||||
|
|
||||||
//Get a color associated with string length. This is to map userId to a specific color
|
//Get a color associated with string length. This is to map userId to a specific color
|
||||||
const getUserColor = (userId: string) => {
|
const getUserColor = (userId: string) => {
|
||||||
return userColors[userId.length % 4];
|
return userColors[userId.length % userColors.length];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ const getTimelineConversation = (room) => {
|
||||||
cli, timelineSet,
|
cli, timelineSet,
|
||||||
{windowLimit: Number.MAX_VALUE});
|
{windowLimit: Number.MAX_VALUE});
|
||||||
|
|
||||||
timelineWindow.load(null, 20);
|
timelineWindow.load(null, 30);
|
||||||
|
|
||||||
const events = timelineWindow.getEvents();
|
const events = timelineWindow.getEvents();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue