diff --git a/internal/modem/manager.go b/internal/modem/manager.go index 33bbcb5f..5db54100 100644 --- a/internal/modem/manager.go +++ b/internal/modem/manager.go @@ -733,12 +733,11 @@ func (m *Manager) handleCommand(req commandRequest) { m.handleFileUpload(req) return } - dialect := m.atProfile.dialect() - if dialect.ownedSMSSubmit != nil && req.smsFinalTimeout > 0 { + if req.smsFinalTimeout > 0 { m.handleML307CSMS(req) return } - cpinPresence := dialect.cpinPresence + cpinPresence := m.atProfile.dialect().cpinPresence queryingPresence := cpinPresence != nil && req.cmd == cpinQuery startTime := time.Now() diff --git a/web/tests/phonePresentation.test.ts b/web/tests/phonePresentation.test.ts index 1fde683e..aeadc1c4 100644 --- a/web/tests/phonePresentation.test.ts +++ b/web/tests/phonePresentation.test.ts @@ -253,7 +253,7 @@ test('wifi calling keeps a dedicated start switch under the mode control', () => assert.match(phoneView, /disableVoWiFi\(selectedDevice\.value\)/) assert.match(phoneView, /打开后开始注册。关掉只停服务,仍是 WiFi calling/) assert.match(phoneView, /if \(mode === selectedMode\.value\) \{[\s\S]*if \(mode === 'wifi'\) return/) - assert.match(phoneView, /:disabled="!!call \|\| modePending \|\| lebaraIdentityBusy\(selected\) \|\| \(!!selectedModeBlocked && !selected\?\.vowifi_enabled\)"/) + assert.match(phoneView, /:disabled="!!call \|\| modePending \|\| lebaraIdentityBusy\(selected\)/) assert.doesNotMatch(phoneView, /modePending \|\| !!selected\?\.rf_lock/) assert.match(phoneView, /status === 'recovering' \|\| status === 'waiting_identity'/) assert.match(phoneView, /正在恢复英国身份/)