mirror of
https://github.com/nextcloud/talk-android
synced 2025-01-19 05:30:15 +00:00
Fix settings
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
562f5498d1
commit
ec7d2f58f6
@ -228,9 +228,7 @@ public class SettingsController extends BaseController {
|
||||
getParentController().getRouter().pushController(RouterTransaction.with(new
|
||||
SwitchAccountController()).pushChangeHandler(new VerticalChangeHandler())
|
||||
.popChangeHandler(new VerticalChangeHandler()));
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -296,10 +294,10 @@ public class SettingsController extends BaseController {
|
||||
if ((!TextUtils.isEmpty(displayName) && !displayName.equals(userEntity.getDisplayName())) ||
|
||||
needsToUpdateUserId) {
|
||||
|
||||
dbQueryDisposable = userUtils.createOrUpdateUser(userEntity.getUsername(),
|
||||
userEntity.getToken(),
|
||||
userEntity.getBaseUrl(), displayName, null, true,
|
||||
userProfileOverall.getOcs().getData().getUserId())
|
||||
dbQueryDisposable = userUtils.createOrUpdateUser(null,
|
||||
null,
|
||||
null, displayName, null, true,
|
||||
userProfileOverall.getOcs().getData().getUserId(), userEntity.getId())
|
||||
.subscribeOn(Schedulers.newThread())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(userEntityResult -> {
|
||||
@ -344,7 +342,6 @@ public class SettingsController extends BaseController {
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user