We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ccd034 commit 5884b39Copy full SHA for 5884b39
react/src/Components/Collections/Tree/TreeActions/RoomEvent.js
@@ -40,7 +40,10 @@ const RoomEvent = ({room, events}) => {
40
};
41
42
// stringify thingId
43
- const roomId = room.includes('room:') ? room.split(':')[1] : null;
+ const roomId = room.includes('room:') ? room.substring(
44
+ room.indexOf(':') + 1,
45
+ room.lastIndexOf('>')
46
+ ) : null;
47
const roomEvents = roomId !== null && events[roomId] || [];
48
const lastIndex = roomEvents.length - 1;
49
0 commit comments