Fix mark event as read command

This commit is contained in:
Nicolas Werner 2026-02-17 01:18:21 +01:00
parent 89e06f32dd
commit ee62c9990d
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 3 additions and 0 deletions

View file

@ -556,6 +556,8 @@ Item {
Component {
MenuItem {
text: qsTr("&Mark as read")
onTriggered: room.markEventAsRead(messageContextMenuC.eventId)
}
}
Component {

View file

@ -332,6 +332,7 @@ public:
Q_INVOKABLE void openUserProfile(QString userid);
Q_INVOKABLE void unpin(const QString &id);
Q_INVOKABLE void pin(const QString &id);
Q_INVOKABLE void markEventAsRead(const QString &id) { this->readEvent(id.toStdString()); }
Q_INVOKABLE void showReadReceipts(const QString &id);
Q_INVOKABLE void redactEvent(const QString &id, const QString &reason = "");
Q_INVOKABLE void redactAllFromUser(const QString &userid, const QString &reason = "");