Authored by 盖剑秋

Fix bug YH-3189. reviewed by redding.

... ... @@ -21,8 +21,8 @@ export default class SPCommentCell extends Component {
}
renderDeleteCommentButton() {
let {data, cidFrom} = this.props;
let {LZ, cidTo, commentId} = data;
let {LZ, data, cidFrom} = this.props;
let {cidTo, commentId} = data;
if (LZ || (cidTo == cidFrom)) {
return (
<TouchableOpacity
... ...
... ... @@ -355,12 +355,14 @@ export default class SubjectPost extends Component {
<SPCommentCell
data={rowData}
cidFrom={this.props.cidFrom}
LZ={this.props.dataBlob.header[0].LZ}
onPressAvatar={()=>{
this.props.onPressAvatar&&this.props.onPressAvatar(rowData.cidTo);
}}
onPressComment={() => {
this.onPressComment(rowData.cidTo, rowData.nickName, rowData.commentId);
}}
onPressDeleteComment={this.props.onPressDeleteComment}
/>
);
break;
... ...