updated delete comment

This commit is contained in:
u-e 2019-03-07 21:51:18 +03:00
parent 1de631e0f0
commit 002c9836ae
3 changed files with 4 additions and 1 deletions

View File

@ -188,6 +188,7 @@ class CommentsContainer extends Component {
handleOnReplyPress={this._handleOnReplyPress}
isLoggedIn={isLoggedIn}
fetchPost={fetchPost}
handleDeleteComment={this._handleDeleteComment}
{...this.props}
/>
);

View File

@ -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}

View File

@ -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);
})