Fix unable to mark as read some rooms

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura committed 2021-12-08 13:49:47 +05:30
1 parent 0240ece6ed
commit 341fdb6bde
3 files changed
+13 -17

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ function Room() {
const mx = initMatrix.matrixClient;
const handleRoomSelected = (rId, pRoomId, eId) => {
if (mx.getRoom(rId)) {
setRoomTimeline(new RoomTimeline(rId));
setRoomTimeline(new RoomTimeline(rId, initMatrix.notifications));
setEventId(eId);
} else {
// TODO: add ability to join room if roomId is invalid