diff --git a/resources/qml/RoomList.qml b/resources/qml/RoomList.qml
index 92e7ef6db15ac073a76cd335b1e94c1c367c8687..20e5b95bf224cde7e66179cb84fea07b859bfaa6 100644
--- a/resources/qml/RoomList.qml
+++ b/resources/qml/RoomList.qml
@@ -726,6 +726,11 @@ Page {
                     destroyOnClose(roomWindow);
                 }
             }
+            Platform.MenuItem {
+                text: qsTr("Mark as read")
+                onTriggered: Rooms.getRoomById(roomContextMenu.roomid).markRoomAsRead()
+            }
+
             Platform.MenuItem {
                 text: qsTr("Room settings")
 
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp
index 752aedb083363bcaa816919d28aad8e28e4977c2..fddd570068234fa36ad42ec5be4cf831af1a1b09 100644
--- a/src/timeline/TimelineModel.cpp
+++ b/src/timeline/TimelineModel.cpp
@@ -1283,14 +1283,21 @@ TimelineModel::updateLastMessage()
 
 void
 TimelineModel::setCurrentIndex(int index)
+{
+    setCurrentIndex(index, false);
+}
+
+void
+TimelineModel::setCurrentIndex(int index, bool ignoreInactiveState)
 {
     auto oldIndex = idToIndex(currentId);
     currentId     = indexToId(index);
     if (index != oldIndex)
         emit currentIndexChanged(index);
 
-    if (!QGuiApplication::focusWindow() || !QGuiApplication::focusWindow()->isActive() ||
-        MainWindow::instance()->windowForRoom(roomId()) != QGuiApplication::focusWindow())
+    if (!ignoreInactiveState &&
+        (!QGuiApplication::focusWindow() || !QGuiApplication::focusWindow()->isActive() ||
+         MainWindow::instance()->windowForRoom(roomId()) != QGuiApplication::focusWindow()))
         return;
 
     if (!currentId.startsWith('m')) {
@@ -1561,6 +1568,12 @@ TimelineModel::markEventsAsRead(const std::vector<QString> &event_ids)
     }
 }
 
+void
+TimelineModel::markRoomAsRead()
+{
+    setCurrentIndex(0, true);
+}
+
 void
 TimelineModel::updateLastReadId(const QString &currentRoomId)
 {
diff --git a/src/timeline/TimelineModel.h b/src/timeline/TimelineModel.h
index fd1a43960475aaec17b37e12d05e43c483d09e6b..6494192023fe26aa7f1c09e9741149cc4504205f 100644
--- a/src/timeline/TimelineModel.h
+++ b/src/timeline/TimelineModel.h
@@ -386,9 +386,11 @@ public:
 
 public slots:
     void setCurrentIndex(int index);
+    void setCurrentIndex(int index, bool ignoreInactiveState);
     int currentIndex() const { return idToIndex(currentId); }
     void eventShown();
     void markEventsAsRead(const std::vector<QString> &event_ids);
+    void markRoomAsRead();
     void updateLastReadId(const QString &currentRoomId);
     void lastReadIdOnWindowFocus();
     void checkAfterFetch();