Initial support for sync

Only sends the sync, does not do anything with the response yet.
Handling the response will be implemented in the next several commits,
piece by piece.

FossilOrigin-Name: 17e299f073f39e55dfe0b8a4bd1b34c8529400138d147df5a7229336df6ba04f
This commit is contained in:
Jonathan Schleifer 2020-10-03 21:56:23 +00:00
parent 0893233697
commit f651e6194c
15 changed files with 142 additions and 13 deletions

View file

@ -62,6 +62,21 @@ OF_APPLICATION_DELEGATE(Tests)
_client = [client retain];
of_log(@"Logged in client: %@", _client);
[self sync];
}];
}
- (void)sync
{
[_client syncWithTimeout: 5
block: ^ (id exception) {
if (exception != nil) {
of_log(@"Failed to sync: %@", exception);
[OFApplication terminateWithStatus: 1];
}
of_log(@"Synced");
[self fetchRoomList];
}];
}