Browse Source

群会话设置界面,修改群名称时,更新UI显示

heavyrain2012 4 years ago
parent
commit
097209e4fe

+ 2 - 0
wfuikit/WFChatUIKit/ConversationSetting/ViewController/WFCUConversationSettingViewController.m

@@ -728,6 +728,8 @@
     gmvc.tryModify = ^(NSString *newValue, void (^result)(BOOL success)) {
       [[WFCCIMService sharedWFCIMService] modifyGroupInfo:self.groupInfo.target type:Modify_Group_Name newValue:newValue notifyLines:@[@(0)] notifyContent:nil success:^{
         result(YES);
+          weakSelf.groupInfo.name = newValue;
+          [weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
       } error:^(int error_code) {
         result(NO);
       }];