Fix unable to mark as read some rooms

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2021-12-08 13:49:47 +05:30
parent ca55141276
commit 27d0a88b36
3 changed files with 13 additions and 17 deletions

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