From 7a39d2ec191846c44b0d5ab8e2fa87bceb6b2d9f Mon Sep 17 00:00:00 2001 From: maxxkim Date: Thu, 2 May 2024 16:14:03 +0300 Subject: [PATCH] fix(iOS): Data type fix --- .../chat/chat_select_screen/bloc/chat_select_bloc.dart | 2 +- lib/presentation/chat/chat_select_screen/models/chat_entry.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }