Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
demchenkoalex committed Apr 19, 2021
1 parent 67f78c4 commit fa81d19
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 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.8

- Add custom metadata to the room class. Thanks @alihen for the PR!

## 2.0.7

- Update homepage
Expand Down
8 changes: 4 additions & 4 deletions lib/src/room.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class Room {
const Room({
required this.id,
this.imageUrl,
this.metadata,
this.name,
required this.type,
required this.users,
this.metadata,
});

/// Room's unique ID
Expand All @@ -27,13 +27,13 @@ class Room {
/// Type of the room, direct, group etc.
final RoomType type;

/// Additional custom metadata or attributes related to the room
final Map<String, dynamic>? metadata;

/// Room's name. In case of the [RoomType.direct] - name of the second person,
/// otherwise a custom name [RoomType.group].
final String? name;

/// List of users which are in the room
final List<User> users;

/// Additional custom metadata or attributes related to the room
final Map<String, dynamic>? metadata;
}
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.7
version: 2.0.8
homepage: https://flyer.chat

environment:
Expand Down

0 comments on commit fa81d19

Please sign in to comment.