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

Fix/14021 behaviour on add or remove toots #14212

Conversation

arielrodrigues
Copy link
Contributor

@arielrodrigues arielrodrigues commented Jul 5, 2020

Hello,

as @bluescreen69 exhibited at #14021 when a new Toot is added at your own account timeline it is not showed unless the page is reloaded also when a Toot is removed at the same screen the toot counter is not updated.

Thus my PR pretends to solve both of these items. Some changes were made at JS code and one line was added to Rails code. I am very newbie in RnR so any comments are welcome.

@arielrodrigues
Copy link
Contributor Author

arielrodrigues commented Jul 19, 2020

Hello @Gargron, can you take a look at this?

@Gargron Gargron merged commit 2ada2ae into mastodon:master Jul 19, 2020
@mayaeh
Copy link
Contributor

mayaeh commented Jul 21, 2020

@Gargron When the reply notification is received by WebUI while displaying the account timelime on the latest master, the display of the notification column becomes strange.
When I revert this PR's commit, it looks like it's fixed.

@umonaca
Copy link
Contributor

umonaca commented Jul 22, 2020

Could you be more specific about what was the strange behavior and how to reproduce it?
Also, could you create an issue for the bug you're reporting?
Thanks!

@@ -73,6 +75,12 @@ class AccountTimeline extends ImmutablePureComponent {
this.props.dispatch(expandAccountTimeline(accountId, { withReplies }));
}

componentDidMount () {
if (this.props.params.accountId === me) {
this.disconnect = this.props.dispatch(connectUserTimelineStream(me));
Copy link
Member

Choose a reason for hiding this comment

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

I've just realized this should not be necessary because the user stream is always active, it starts when the app is opened.

@bluescreen69
Copy link

Hello, @umonaca! Please check this issue here #14021

@Gargron
Copy link
Member

Gargron commented Jul 23, 2020

@umonaca was referring to the regression due to this PR reported by @mayaeh

Gargron added a commit that referenced this pull request Jul 24, 2020
Gargron added a commit that referenced this pull request Jul 24, 2020
shouo1987 pushed a commit to CrossGate-Pawoo/mastodon that referenced this pull request Dec 7, 2022
* Add toot send by current user at local state after send a new toot

Related to mastodon#14021

* Decrement toot counter at profile when remove a toot

Related to mastodon#14021

* Remove semicolon at end of line
shouo1987 pushed a commit to CrossGate-Pawoo/mastodon that referenced this pull request Dec 7, 2022
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.

None yet

5 participants