Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update subscribed communities in sidebar when user subscribes#948

Merged
twizmwazin merged 6 commits into
LemmyNet:mainfrom
twizmwazin:update-communities-in-sidebar-on-subscribe
Jul 4, 2023
Merged

Update subscribed communities in sidebar when user subscribes#948
twizmwazin merged 6 commits into
LemmyNet:mainfrom
twizmwazin:update-communities-in-sidebar-on-subscribe

Conversation

@twizmwazin

Copy link
Copy Markdown
Contributor

No description provided.

@twizmwazin twizmwazin requested a review from dessalines as a code owner July 2, 2023 05:57
Comment thread app/src/main/java/com/jerboa/ui/components/community/CommunityActivity.kt Outdated
else -> {}
}

onComplete()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I would only do it on Success, there is no point on updating if the following has failed

follow = cfv.subscribed == SubscribedType.NotSubscribed,
auth = acct.jwt,
),
onComplete = {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice, this is simple enough and works.

@twizmwazin twizmwazin merged commit 655940e into LemmyNet:main Jul 4, 2023
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.

3 participants