私聊账号异常风险提醒

This commit is contained in:
fengshuo
2022-08-19 18:14:57 +08:00
parent fdd6224fa6
commit d03a038bfc
2 changed files with 4 additions and 0 deletions

View File

@@ -241,6 +241,7 @@
self.followInRoomView.hidden = NO;
self.followInRoomView.userInfo = userInfo;
if ([self showChatRiskView:userInfo]) {
self.riskAlertView.warning = userInfo.banAccount ? @" 温馨提醒:当前对方账号存在异常,请谨慎来往!" : @"温馨提示:对方和您非好友关系,请注意隐私安全!";
if (!self.riskAlertView.superview) {
[self.view addSubview:self.riskAlertView];
[self.riskAlertView mas_makeConstraints:^(MASConstraintMaker *make) {
@@ -266,6 +267,7 @@
}
} else {
if ([self showChatRiskView:userInfo]) {
self.riskAlertView.warning = userInfo.banAccount ? @" 温馨提醒:当前对方账号存在异常,请谨慎来往!" : @"温馨提示:对方和您非好友关系,请注意隐私安全!";
if (!self.riskAlertView.superview) {
[self.view addSubview:self.riskAlertView];
[self.riskAlertView mas_makeConstraints:^(MASConstraintMaker *make) {