Two issues prevented locked chats from opening: 1. context as? FragmentActivity silently returned null on some devices where LocalContext.current is a ContextWrapper. Fix: walk the ContextWrapper chain to find the FragmentActivity. 2. No fallback when biometrics unavailable — the chat just stayed locked with no feedback. Fix: if biometrics not available (no fingerprint enrolled, no hardware), skip biometric prompt and unlock directly via server token. Biometric is still enforced when available. Extracted unlockAndOpen() to avoid duplicating the server unlock + message loading logic across biometric/fallback paths. |
||
|---|---|---|
| .. | ||
| androidTest/java/dev/kaizen/app | ||
| main | ||
| test/java/dev/kaizen/app | ||