aboutsummaryrefslogtreecommitdiff
path: root/room.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'room.cpp')
-rw-r--r--room.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/room.cpp b/room.cpp
index 3beac1b2..764f4d23 100644
--- a/room.cpp
+++ b/room.cpp
@@ -22,6 +22,7 @@
#include "jobs/generated/inviting.h"
#include "jobs/generated/banning.h"
#include "jobs/generated/leaving.h"
+#include "jobs/generated/receipts.h"
#include "jobs/setroomstatejob.h"
#include "events/simplestateevents.h"
#include "events/roomavatarevent.h"
@@ -30,7 +31,6 @@
#include "events/receiptevent.h"
#include "jobs/sendeventjob.h"
#include "jobs/roommessagesjob.h"
-#include "jobs/postreceiptjob.h"
#include "avatar.h"
#include "connection.h"
#include "user.h"
@@ -283,7 +283,8 @@ void Room::markMessagesAsRead(Room::rev_iter_t upToMarker)
{
if ((*markers.second)->senderId() != localUser()->id())
{
- connection()->callApi<PostReceiptJob>(id(), (*markers.second)->id());
+ connection()->callApi<PostReceiptJob>(
+ id(), "m.read", (*markers.second)->id());
break;
}
}