feat(profile): add chat settings and language options to profile settings
All checks were successful
Frontend CI / ota-android (push) Successful in 13m7s
Frontend CI / build-and-push-web (push) Successful in 16m58s
Frontend CI / build-android-apk (push) Successful in 1h4m18s

- Introduced hrefProfileChatSettings() for navigation to chat settings.
- Updated SettingsScreen to include new settings items for chat settings, language selection, data storage, terms, and privacy policy.
- Enhanced user experience by providing alerts for language and data storage options.

This update improves the profile settings interface by adding more customization options for users.
This commit is contained in:
lafay
2026-04-01 02:17:36 +08:00
parent 20e9d69540
commit 5614b4078a
25 changed files with 2622 additions and 801 deletions

View File

@@ -215,12 +215,17 @@ export const useAuthStore = create<AuthState>((set) => ({
await authService.logout();
// 2. 停止 SSE
wsService.stop();
// 3. 清除 DB 中的用户缓存DB 此时一定已初始化
// 3. 重置通话状态(清理所有事件订阅和定时器
callStore.getState().reset();
// 4. 清除 DB 中的用户缓存DB 此时一定已初始化)
await clearCurrentUserCache().catch(() => {});
// 4. 关闭数据库连接
// 5. 关闭数据库连接
await closeDatabase();
// 5. 清除持久化的 userId
// 6. 清除持久化的 userId
await clearUserId();
// 7. 清除 userManager 的内存缓存
const { userManager } = await import('./userManager');
userManager.invalidateUsers();
} catch (error) {
console.error('[AuthStore] 登出失败:', error);
} finally {