Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
dom
2025-09-12 18:12:21 +08:00
committed by GitHub
parent da17725616
commit d6bff33d29
130 changed files with 1036 additions and 834 deletions

View File

@@ -99,8 +99,6 @@ abstract class CommonPublishPageState<T extends CommonPublishPage>
void updatePanelType(PanelType type) {
final isSwitchToKeyboard = PanelType.keyboard == type;
final isSwitchToEmojiPanel =
PanelType.emoji == type || PanelType.more == type;
bool isUpdated = false;
switch (type) {
case PanelType.keyboard:
@@ -119,9 +117,9 @@ abstract class CommonPublishPageState<T extends CommonPublishPage>
? ChatBottomPanelType.keyboard
: ChatBottomPanelType.other,
data: type,
forceHandleFocus: isSwitchToEmojiPanel
forceHandleFocus: isSwitchToKeyboard
? ChatBottomHandleFocus.requestFocus
: ChatBottomHandleFocus.none,
: ChatBottomHandleFocus.unfocus,
);
}