fix主动发起私聊逻辑
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user