mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-17 02:13:34 +03:00
anhances post according to new user when switch
This commit is contained in:
parent
38d62fdc9f
commit
5b6a889d68
@ -42,7 +42,19 @@ class PostsView extends Component {
|
||||
currentAccountUsername !== nextProps.currentAccountUsername
|
||||
&& nextProps.currentAccountUsername
|
||||
) {
|
||||
this._loadPosts();
|
||||
// Set all initial data (New user new rules)
|
||||
this.setState({
|
||||
posts: [],
|
||||
startAuthor: '',
|
||||
startPermlink: '',
|
||||
refreshing: false,
|
||||
isLoading: false,
|
||||
isPostsLoading: false,
|
||||
isHideImage: false,
|
||||
selectedFilterIndex: 0,
|
||||
}, () => {
|
||||
this._loadPosts();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user