fix(iOS): Data type fix

This commit is contained in:
2024-05-02 16:14:03 +03:00
parent e1932ff2ff
commit 7a39d2ec19
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ class ChatSelectBloc extends Bloc<ChatSelectEvent, ChatSelectState> {
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'],

View File

@@ -25,5 +25,5 @@ class ChatItemModel {
String? greetingText;
int id;
String id;
}