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
Fix/14021 behaviour on add or remove toots #14212
Conversation
Hello @Gargron, can you take a look at this? |
@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. |
Could you be more specific about what was the strange behavior and how to reproduce it? |
@@ -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)); |
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've just realized this should not be necessary because the user stream is always active, it starts when the app is opened.
…e in web UI Fix regression from #14212
* 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
…e in web UI (mastodon#14387) Fix regression from mastodon#14212
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.