Created [MXCredentials initWithHomeServer...]. This is nicer than setting properties one by one after a [MXCredentials init]

This commit is contained in:
manuroe
2014-11-24 15:04:31 +01:00
parent d4c0f820f6
commit b0cf813e46
+3 -4
View File
@@ -80,10 +80,9 @@ static MatrixHandler *sharedHandler = nil;
- (void)openSession {
MXCredentials *credentials = [[MXCredentials alloc] init];
credentials.homeServer = self.homeServerURL;
credentials.userId = self.userId;
credentials.accessToken = self.accessToken;
MXCredentials *credentials = [[MXCredentials alloc] initWithHomeServer:self.homeServerURL
userId:self.userId
accessToken:self.accessToken];
self.mxRestClient = [[MXRestClient alloc] initWithCredentials:credentials];
if (self.mxRestClient) {