Merge branch 'develop' into ismail/5502_ungroup_threads

This commit is contained in:
ismailgulek
2022-06-13 13:58:43 +03:00
44 changed files with 1326 additions and 309 deletions
@@ -287,11 +287,15 @@ typedef BOOL (^MXKAccountOnCertificateChange)(MXKAccount *mxAccount, NSData *cer
@param oldPassword the old password.
@param newPassword the new password.
@param logoutDevices flag to logout from all devices.
@param success A block object called when the operation succeeds.
@param failure A block object called when the operation fails.
*/
- (void)changePassword:(NSString*)oldPassword with:(NSString*)newPassword success:(void (^)(void))success failure:(void (^)(NSError *error))failure;
- (void)changePassword:(NSString*)oldPassword
with:(NSString*)newPassword
logoutDevices:(BOOL)logoutDevices
success:(void (^)(void))success
failure:(void (^)(NSError *error))failure;
/**
Load the 3PIDs linked to this account.
@@ -582,12 +582,13 @@ static NSArray<NSNumber*> *initialSyncSilentErrorsHTTPStatusCodes;
}
}
- (void)changePassword:(NSString*)oldPassword with:(NSString*)newPassword success:(void (^)(void))success failure:(void (^)(NSError *error))failure
- (void)changePassword:(NSString*)oldPassword with:(NSString*)newPassword logoutDevices:(BOOL)logoutDevices success:(void (^)(void))success failure:(void (^)(NSError *error))failure
{
if (mxSession)
{
[mxRestClient changePassword:oldPassword
with:newPassword
logoutDevices:logoutDevices
success:^{
if (success) {