We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13636c1 commit 03436a4Copy full SHA for 03436a4
2 files changed
Coding_iOS/Controllers/Topic/CSMyTopicVC.m
@@ -73,6 +73,12 @@ - (void)viewDidLoad {
73
}
74
75
- (BOOL)isMe{
76
+
77
+ if(!_curUser) {
78
79
+ _curUser = [Login curLoginUser];
80
+ }
81
82
return [_curUser.global_key isEqualToString:[Login curLoginUser].global_key];
83
84
Coding_iOS/Controllers/Topic/CSTopiclistView.m
@@ -43,7 +43,7 @@ - (id)initWithFrame:(CGRect)frame globalKey:(NSString *)key type:(CSMyTopicsType
43
if (self) {
44
// Initialization code
45
_dataList = [[NSMutableArray alloc] init];
46
- _globalKey = [key copy];
+ _globalKey = key == nil ? [[Login curLoginUser].global_key copy] : [key copy];
47
_type = type;
48
_block = block;
49
_myTableView = ({
0 commit comments