diff --git a/lib/presentation/chat/chat_select_screen/bloc/chat_select_bloc.dart b/lib/presentation/chat/chat_select_screen/bloc/chat_select_bloc.dart index ce5c6387..740dbab7 100644 --- a/lib/presentation/chat/chat_select_screen/bloc/chat_select_bloc.dart +++ b/lib/presentation/chat/chat_select_screen/bloc/chat_select_bloc.dart @@ -28,7 +28,7 @@ class ChatSelectBloc extends Bloc { text = "Вы: " + text; } chats.add(ChatItemModel( - id: int.parse(chatRooms[i]['id']), + id: chatRooms[i]['id'], userImage: chatRooms[i]['users']['to_chat_user'] ['profile_photo_path'], username: chatRooms[i]['users']['to_chat_user']['name'], diff --git a/lib/presentation/chat/chat_select_screen/models/chat_entry.dart b/lib/presentation/chat/chat_select_screen/models/chat_entry.dart index f1f02aec..6738afb8 100644 --- a/lib/presentation/chat/chat_select_screen/models/chat_entry.dart +++ b/lib/presentation/chat/chat_select_screen/models/chat_entry.dart @@ -25,5 +25,5 @@ class ChatItemModel { String? greetingText; - int id; + String id; }