Skip to content

Commit 5f3e3be

Browse files
committed
动态的评论里面没有 owner_id。。
1 parent ca26893 commit 5f3e3be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Coding_iOS/Controllers/EditTaskViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ - (void)doCommentToComment:(TaskComment *)toComment sender:(id)sender{
526526
_myMsgInputView.toUser = toComment.owner;
527527

528528
if (_toComment) {
529-
if (_toComment.owner_id.intValue == [Login curLoginUser].id.intValue) {
529+
if ([_toComment.owner.global_key isEqualToString:[Login curLoginUser].global_key]) {
530530
__weak typeof(self) weakSelf = self;
531531
UIActionSheet *actionSheet = [UIActionSheet bk_actionSheetCustomWithTitle:@"删除此评论" buttonTitles:nil destructiveTitle:@"确认删除" cancelTitle:@"取消" andDidDismissBlock:^(UIActionSheet *sheet, NSInteger index) {
532532
if (index == 0) {

0 commit comments

Comments
 (0)