@@ -501,6 +501,9 @@ public void onInitializeAccessibilityNodeInfo(View host, AccessibilityNodeInfo i
501
501
private boolean smoothKeyboard ;
502
502
503
503
private boolean isPaused = true ;
504
+
505
+ // 是否显示流式响应暂停按钮
506
+ private boolean isHideStopStream = true ;
504
507
private boolean recordIsCanceled ;
505
508
private boolean showKeyboardOnResume ;
506
509
@@ -5149,6 +5152,9 @@ public void onAnimationEnd(Animator animation) {
5149
5152
}
5150
5153
5151
5154
private void sendMessage () {
5155
+
5156
+ if (BuildVars .IS_CHAT_AIR && !isHideStopStream && sendByEnter ) return ;
5157
+
5152
5158
if (isInScheduleMode ()) {
5153
5159
AlertsCreator .createScheduleDatePickerDialog (parentActivity , parentFragment .getDialogId (), this ::sendMessageInternal , resourcesProvider );
5154
5160
} else {
@@ -9427,9 +9433,10 @@ public void didReceivedNotification(int id, int account, Object... args) {
9427
9433
} else if (id == NotificationCenter .didUpdatePremiumGiftFieldIcon ) {
9428
9434
updateGiftButton (true );
9429
9435
} else if (id == NotificationCenter .updateSteam ) {
9430
- boolean isShow = (boolean ) args [0 ];
9431
- cancelStreamButton .setVisibility (isShow ? VISIBLE : GONE );
9432
- sendButtonContainer .setVisibility (!isShow ? VISIBLE : GONE );
9436
+ boolean isShowStopStream = (boolean ) args [0 ];
9437
+ isHideStopStream = !isShowStopStream ;
9438
+ cancelStreamButton .setVisibility (isShowStopStream ? VISIBLE : GONE );
9439
+ sendButtonContainer .setVisibility (!isShowStopStream ? VISIBLE : GONE );
9433
9440
} else if (id == NotificationCenter .updateModel ) {
9434
9441
updateAttachInterface ();
9435
9442
}
0 commit comments