Skip to content

Commit 5884b39

Browse files
author
AnjaBruls
committed
1 parent 6ccd034 commit 5884b39

File tree

1 file changed

+4
-1
lines changed
  • react/src/Components/Collections/Tree/TreeActions

1 file changed

+4
-1
lines changed

react/src/Components/Collections/Tree/TreeActions/RoomEvent.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ const RoomEvent = ({room, events}) => {
4040
};
4141

4242
// stringify thingId
43-
const roomId = room.includes('room:') ? room.split(':')[1] : null;
43+
const roomId = room.includes('room:') ? room.substring(
44+
room.indexOf(':') + 1,
45+
room.lastIndexOf('>')
46+
) : null;
4447
const roomEvents = roomId !== null && events[roomId] || [];
4548
const lastIndex = roomEvents.length - 1;
4649

0 commit comments

Comments
 (0)