aboutsummaryrefslogtreecommitdiffstats
path: root/matrix-api.h
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2015-10-27 09:56:52 +0000
committerRichard van der Hoff <richard@matrix.org>2015-10-27 09:56:52 +0000
commitc69bd547bbdf96470786d4e23b40641a7526942a (patch)
tree5f7495407c252b91b257da91f709424f6d32d3f5 /matrix-api.h
parente2500a76ee35cb3be863342573495a28f47c5eb8 (diff)
downloadpurple-matrix-c69bd547bbdf96470786d4e23b40641a7526942a.tar.gz
Request a full_state sync the first time we connect to an account.
This requires the new full_state support from https://github.com/matrix-org/synapse/pull/332. It's much cleaner than trying to request the state the first time we hear about a room.
Diffstat (limited to 'matrix-api.h')
-rw-r--r--matrix-api.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/matrix-api.h b/matrix-api.h
index 1c450eb..5876753 100644
--- a/matrix-api.h
+++ b/matrix-api.h
@@ -134,7 +134,9 @@ MatrixApiRequestData *matrix_api_password_login(MatrixConnectionData *conn,
* @param since If non-null, the batch token to start sync from
* @param timeout Number of milliseconds after which the API will time out if
* no events
- * @param callback Function to be called when the request completes
+ * @param full_state If true, will do a full state sync instead of an
+ * incremental sync
+ * @param callback Function to be called when the request completes
* @param error_callback Function to be called if there is an error making
* the request. If NULL, matrix_api_error will be
* used.
@@ -144,7 +146,7 @@ MatrixApiRequestData *matrix_api_password_login(MatrixConnectionData *conn,
* @param user_data Opaque data to be passed to the callback
*/
MatrixApiRequestData *matrix_api_sync(MatrixConnectionData *conn,
- const gchar *since, int timeout,
+ const gchar *since, int timeout, gboolean full_state,
MatrixApiCallback callback,
MatrixApiErrorCallback error_callback,
MatrixApiBadResponseCallback bad_response_callback,