mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 03:20:50 +02:00
Created [MXCredentials initWithHomeServer...]. This is nicer than setting properties one by one after a [MXCredentials init]
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user