mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 21:01:31 +03:00
updated delete comment
This commit is contained in:
parent
1de631e0f0
commit
002c9836ae
@ -188,6 +188,7 @@ class CommentsContainer extends Component {
|
||||
handleOnReplyPress={this._handleOnReplyPress}
|
||||
isLoggedIn={isLoggedIn}
|
||||
fetchPost={fetchPost}
|
||||
handleDeleteComment={this._handleDeleteComment}
|
||||
{...this.props}
|
||||
/>
|
||||
);
|
||||
|
@ -38,6 +38,7 @@ class CommentsView extends PureComponent {
|
||||
isLoggedIn,
|
||||
isShowSubComments,
|
||||
marginLeft,
|
||||
handleDeleteComment,
|
||||
} = this.props;
|
||||
|
||||
return (
|
||||
@ -50,6 +51,7 @@ class CommentsView extends PureComponent {
|
||||
comment={item}
|
||||
commentCount={commentCount || item.children}
|
||||
commentNumber={commentNumber}
|
||||
handleDeleteComment={handleDeleteComment}
|
||||
currentAccountUsername={currentAccountUsername}
|
||||
fetchPost={fetchPost}
|
||||
handleOnEditPress={handleOnEditPress}
|
||||
|
@ -344,7 +344,7 @@ export const getPurePost = async (author, permlink) => {
|
||||
export const deleteComment = (author, permlink) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
client.database
|
||||
.call('delete_comment', [author, permlink])
|
||||
.call('comment_delete', [author, permlink])
|
||||
.then((response) => {
|
||||
resolve(response);
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user