Skip to content

Commit

Permalink
Fix null status
Browse files Browse the repository at this point in the history
  • Loading branch information
demchenkoalex committed Mar 8, 2021
1 parent 430c666 commit c99f888
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.3

- Fix null status

## 2.0.2

- Add CI
Expand Down
6 changes: 3 additions & 3 deletions lib/src/message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class FileMessage extends Message {
super(
json['authorId'] as String,
json['id'] as String,
getStatusFromString(json['status'] as String),
getStatusFromString(json['status'] as String?),
json['timestamp'] as int?,
MessageType.file,
);
Expand Down Expand Up @@ -255,7 +255,7 @@ class ImageMessage extends Message {
super(
json['authorId'] as String,
json['id'] as String,
getStatusFromString(json['status'] as String),
getStatusFromString(json['status'] as String?),
json['timestamp'] as int?,
MessageType.image,
);
Expand Down Expand Up @@ -348,7 +348,7 @@ class TextMessage extends Message {
super(
json['authorId'] as String,
json['id'] as String,
getStatusFromString(json['status'] as String),
getStatusFromString(json['status'] as String?),
json['timestamp'] as int?,
MessageType.text,
);
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: flutter_chat_types
description: >
Utility library for the flutter_chat_ui and flutter_firebase_chat_core libraries
which contains shared type declarations.
version: 2.0.2
version: 2.0.3
homepage: https://github.com/flyerhq/flutter_chat_types

environment:
Expand Down

0 comments on commit c99f888

Please sign in to comment.