Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bruig: Add subcribe button to feed content #382

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

alexlyp
Copy link
Member

@alexlyp alexlyp commented Nov 17, 2023

Close #373

Also fix SubUserMenu toggles for subscribing and showing proper label depending on current state (subscribed, subscribing, or neither).

Copy link
Collaborator

@miki-totefu miki-totefu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to add a version of https://github.com/companyzero/bisonrelay/blob/master/bruig/flutterui/bruig/lib/models/client.dart#L116-L119 that calls notifyListeners, otherwise the ui doesnt update once the subscription is done

client.updateUserMenu(chat.id, buildUserChatMenu(chat));
}

print("${chat.nick} ${chat.isSubscribed} ${chat.isSubscribing}");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove

Comment on lines 84 to 85
bool isSubscribed = false;
bool isSubscribing = false;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these should be local to build()

@miki-totefu miki-totefu merged commit d4b3dcc into companyzero:master Dec 7, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bruig: Add UX to subscribe to another user from Feed
2 participants