Skip to content

Commit

Permalink
update TUIKit&Demo 7.0.3754
Browse files Browse the repository at this point in the history
  • Loading branch information
yiliangwang committed Jan 6, 2023
1 parent 1ce7c29 commit 5b34a6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iOS/Demo/TUIKitDemo/Classic/Setting/SettingController.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ - (void)viewDidLoad {

TUISettingController *vc = [[TUISettingController alloc] init];
vc.delegate = self;
vc.msgNeedReadReceipt = [TUIChatConfig defaultConfig].msgNeedReadReceipt;
vc.aboutCellText = NSLocalizedString(@"MeAbout", nil);
vc.view.frame = self.view.bounds;
[self addChildViewController:vc];
Expand All @@ -55,6 +56,7 @@ - (void)onTapTest:(UIGestureRecognizer *)recognizer {

#pragma mark TUISettingControllerDelegate
- (void)onSwitchMsgReadStatus:(BOOL)isOn {
[TUIChatConfig defaultConfig].msgNeedReadReceipt = isOn;
[[NSUserDefaults standardUserDefaults] setBool:isOn forKey:kEnableMsgReadStatus];
[[NSUserDefaults standardUserDefaults] synchronize];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ - (void)viewDidLoad {

TUISettingController_Minimalist *vc = [[TUISettingController_Minimalist alloc] init];
vc.delegate = self;
vc.msgNeedReadReceipt = [TUIChatConfig defaultConfig].msgNeedReadReceipt;
vc.aboutCellText = NSLocalizedString(@"MeAbout", nil);
vc.view.frame = self.view.bounds;
[self addChildViewController:vc];
Expand All @@ -55,6 +56,7 @@ - (void)onTapTest:(UIGestureRecognizer *)recognizer {

#pragma mark TUISettingControllerDelegate_Minimalist
- (void)onSwitchMsgReadStatus:(BOOL)isOn {
[TUIChatConfig defaultConfig].msgNeedReadReceipt = isOn;
[[NSUserDefaults standardUserDefaults] setBool:isOn forKey:kEnableMsgReadStatus_mini];
[[NSUserDefaults standardUserDefaults] synchronize];
}
Expand Down

0 comments on commit 5b34a6f

Please sign in to comment.