Add support for storage
FossilOrigin-Name: 3c84d235e55a6f4481f3ccfb4007113716902901544f9a1f011723767ecaa1e4
This commit is contained in:
parent
491d648e3a
commit
0893233697
12 changed files with 194 additions and 12 deletions
|
@ -47,9 +47,12 @@ OF_APPLICATION_DELEGATE(Tests)
|
|||
}
|
||||
|
||||
OFURL *homeserver = [OFURL URLWithString: environment[@"OBJMATRIX_HS"]];
|
||||
id <MTXStorage> storage =
|
||||
[MTXSQLite3Storage storageWithPath: @"tests.db"];
|
||||
[MTXClient logInWithUser: environment[@"OBJMATRIX_USER"]
|
||||
password: environment[@"OBJMATRIX_PASS"]
|
||||
homeserver: homeserver
|
||||
storage: storage
|
||||
block: ^ (MTXClient *client, id exception) {
|
||||
if (exception != nil) {
|
||||
of_log(@"Error logging in: %@", exception);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue