fix主动发起私聊逻辑

This commit is contained in:
oujunhui
2020-08-17 20:00:47 +08:00
parent 04d48cc826
commit 8fe994d292

View File

@@ -419,15 +419,15 @@ public class InputPanel implements IEmoticonSelectedListener, IAudioRecordCallba
private void onTextMessageSendButtonPressed() {
String text = messageEditText.getText().toString();
if (TextUtils.isEmpty(text.trim())) return;
if (limitLevel <= 1 && currentRegisterDay < limitRegisterDay) {
SingleToastUtil.showToastShort("注册时间满"+limitRegisterDay+"天才能发起聊天");
return;
}
if (currentLevel < limitLevel && limitRegisterDay < 1){
SingleToastUtil.showToastShort("等级满" + limitLevel + "才能发起聊天");
return;
}
if (currentRegisterDay < limitRegisterDay || currentLevel < limitLevel){
// if (limitLevel <= 1 && currentRegisterDay < limitRegisterDay) {
// SingleToastUtil.showToastShort("注册时间满"+limitRegisterDay+"天才能发起聊天");
// return;
// }
// if (currentLevel < limitLevel && limitRegisterDay < 1){
// SingleToastUtil.showToastShort("等级满" + limitLevel + "才能发起聊天");
// return;
// }
if (currentRegisterDay < limitRegisterDay && currentLevel < limitLevel){
SingleToastUtil.showToastShort("注册时间满" + limitRegisterDay + "天或等级满" + limitLevel + "才能发起聊天");
return;
}