aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 28156d11..76e61ed1 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -412,6 +412,11 @@ void Connection::stopSync()
}
}
+QString Connection::nextBatchToken() const
+{
+ return d->data->lastEvent();
+}
+
PostReceiptJob* Connection::postReceipt(Room* room, RoomEvent* event) const
{
return callApi<PostReceiptJob>(room->id(), "m.read", event->id());