summary refs log tree commit diff
path: root/src/ChatPage.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-03-16 21:01:14 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-03-16 21:01:14 +0100
commitcc3d32c65efca1f7dad2314a9e0d36bcd0c9d127 (patch)
tree4975b1a90b90349f22203be6863bea360f763616 /src/ChatPage.h
parentConvert flatpak file to yaml to be able to add comments (diff)
downloadnheko-cc3d32c65efca1f7dad2314a9e0d36bcd0c9d127.tar.xz
Move check for duplicate /sync responses to the same thread
Diffstat (limited to '')
-rw-r--r--src/ChatPage.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ChatPage.h b/src/ChatPage.h

index 17a4827f..84e7cdff 100644 --- a/src/ChatPage.h +++ b/src/ChatPage.h
@@ -141,7 +141,7 @@ signals: void trySyncCb(); void tryDelayedSyncCb(); void tryInitialSyncCb(); - void newSyncResponse(const mtx::responses::Sync &res); + void newSyncResponse(const mtx::responses::Sync &res, const std::string &prev_batch_token); void leftRoom(const QString &room_id); void newRoom(const QString &room_id); @@ -194,7 +194,8 @@ private slots: void changeRoom(const QString &room_id); void dropToLoginPage(const QString &msg); - void handleSyncResponse(const mtx::responses::Sync &res); + void handleSyncResponse(const mtx::responses::Sync &res, + const std::string &prev_batch_token); private: static ChatPage *instance_;