From d475973f4d89c0ff553d2733a7859cb70620adb7 Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sun, 13 Nov 2022 18:40:03 +0800 Subject: [PATCH] SessionCtl // Fix state correction in handle(event:). --- Source/Modules/SessionCtl_HandleEvent.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Modules/SessionCtl_HandleEvent.swift b/Source/Modules/SessionCtl_HandleEvent.swift index 63f85908..7282e84b 100644 --- a/Source/Modules/SessionCtl_HandleEvent.swift +++ b/Source/Modules/SessionCtl_HandleEvent.swift @@ -28,7 +28,7 @@ extension SessionCtl { // 如果是 deactivated 狀態的話,強制糾正其為 empty()。 if let client = client(), state.type == .ofDeactivated { - switchState(IMEState.ofEmpty()) + state = IMEState.ofEmpty() return handle(event, client: client) }