feat: Implement messaging functionality with conversation and chat screens, and enhance agent detail views.
This commit is contained in:
@@ -150,7 +150,16 @@ class _HomeScreenState extends ConsumerState<HomeScreen> {
|
||||
context.push('/agents/search');
|
||||
return;
|
||||
}
|
||||
if (index == 2 || index == 3) {
|
||||
if (index == 2) {
|
||||
final authState = ref.read(authProvider);
|
||||
if (authState.status != AuthStatus.authenticated) {
|
||||
context.push('/login');
|
||||
return;
|
||||
}
|
||||
context.push('/messages');
|
||||
return;
|
||||
}
|
||||
if (index == 3) {
|
||||
final authState = ref.read(authProvider);
|
||||
if (authState.status != AuthStatus.authenticated) {
|
||||
context.push('/login');
|
||||
|
||||
Reference in New Issue
Block a user