diff options
-rw-r--r-- | lib/connection.cpp | 5 | ||||
-rw-r--r-- | lib/connection.h | 1 |
2 files changed, 6 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()); diff --git a/lib/connection.h b/lib/connection.h index 220f6c8f..9a94aad6 100644 --- a/lib/connection.h +++ b/lib/connection.h @@ -390,6 +390,7 @@ namespace QMatrixClient void sync(int timeout = -1); void stopSync(); + QString nextBatchToken() const; virtual MediaThumbnailJob* getThumbnail(const QString& mediaId, QSize requestedSize, RunningPolicy policy = BackgroundRequest) const; |