@@ -85,6 +85,14 @@ - (NSMutableString *)actionStr{
85
85
}
86
86
}else if ([_action isEqualToString: @" update_description" ]) {
87
87
[_actionStr appendFormat: @" 更新了任务「%@ 」的描述" , _task.title];
88
+ }else if ([_action isEqualToString: @" update_label" ]) {
89
+ [_actionStr appendFormat: @" 更新了任务「%@ 」的标签" , _task.title];
90
+ }else if ([_action isEqualToString: @" add_watcher" ]){
91
+ [_actionStr saveAppendString: _action_msg];
92
+ [self addActionUser: _watcher];
93
+ }else if ([_action isEqualToString: @" remove_watcher" ]){
94
+ [_actionStr saveAppendString: _action_msg];
95
+ [self addActionUser: _watcher];
88
96
}else {
89
97
[_actionStr saveAppendString: _action_msg];
90
98
if (_origin_task.owner ) {
@@ -166,6 +174,12 @@ - (NSMutableString *)contentStr{
166
174
[_contentStr appendFormat: @" 「%@ 」" , [NSDate convertStr_yyyy_MM_ddToDisplay: _task.deadline]];
167
175
}else if ([_action isEqualToString: @" update_description" ]) {
168
176
[_contentStr saveAppendString: _task.description_mine];
177
+ }else if ([_action isEqualToString: @" update_label" ]) {
178
+ if (_labels.count > 0 ) {
179
+ [_contentStr appendFormat: @" %@ " , [[_labels valueForKey: @" name" ] componentsJoinedByString: @" ," ]];
180
+ }else {
181
+ [_contentStr appendFormat: @" 移除了任务的所有标签" ];
182
+ }
169
183
}else {
170
184
[_contentStr saveAppendString: _task.title];
171
185
}
0 commit comments