-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toggling following in settings #259
Conversation
|
||
this.optOutOfFollowing | ||
.compose(bindToLifecycle()) | ||
.filter(optOut -> !optOut) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if it might make sense to consolidate these two subscribers into one:
.subscribe(optOut ->
if (optOut) {
this.userInput.onNext(this.userOutput.getValue().toBuilder().social(false).build())
} else {
this.hideConfirmFollowingOptOutPrompt.onNext(null)
})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm glad you called this out because I had it that way and changed it. What do you think is best? I was trying to avoid doing an if/else
because it's not very functional 馃槶but then this way is not very readable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I thought there might have been a reason you went this way. I'm ok with it, just wanted to see the thinking behind it! Thanks! 猸愶笍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm! I just had the one suggestion, not a blocker though. Nice work! 馃帀
* Add CloudFormation for CircleCI user * Fix indentation on CloudFormation template * Add GetObject to CI user
what
Users should be able to toggle whether or not they can be following or
social
via settings. This change also updates whether theBacked by people you follow
section is visible in the drawer.This is a destructive change so we need to confirm they definitely want to do this.
why
G
D
P
R
how 馃
The
optIntoFollowing
input determines whether user has checked the switch on or off. TheoptOutOfFollowing
input determines whether user has confirmed turning Following off.When
optIntoFollowing
istrue
, we just turn Following on.When
optIntoFollowing
isfalse
, we show the confirmation dialog. This dialog is not cancelable, Iexpectdemand, they make a choice!When
optOutOfFollowing
istrue
, that's a confirmation, we turn Following off.When
optOutOfFollowing
isfalse
, we change the switch back to on!see 馃憖
First, I'm
![2018-06-07 13_37_43](https://user-images.githubusercontent.com/1289295/41116328-fd55bb0e-6a57-11e8-80ab-462400356152.gif)
social
and my drawer showsBacked by people you follow
. I attempt to turn it off, cancel. I attempt to turn it off again, and confirm. My drawer no longer showsBacked by people you follow
.