feat(profile): add chat settings and language options to profile settings
- 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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user