Skip to content

Commit afaa929

Browse files
committed
Send metadata
1 parent fec749b commit afaa929

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.1.4
2+
3+
- Add an option to send metadata
4+
- Update dependencies
5+
16
## 1.1.3
27

38
- Update dependencies

example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ dependencies:
2929
# Use with the CupertinoIcons class for iOS style icons.
3030
cupertino_icons: ^1.0.3
3131
faker: ^2.0.0
32-
file_picker: ^3.0.3
32+
file_picker: ^4.0.0
3333
firebase_auth: ^3.0.1
3434
firebase_core: ^1.4.0
3535
firebase_storage: ^10.0.1
3636
flutter_chat_ui: ^1.1.9
3737
flutter_firebase_chat_core:
3838
path: ../
3939
http: ^0.13.3
40-
image_picker: ^0.8.2
40+
image_picker: ^0.8.3+2
4141
mime: ^1.0.0
4242
open_file: ^3.2.1
4343
path_provider: ^2.0.2

lib/src/firebase_chat_core.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,13 @@ class FirebaseChatCore {
211211

212212
types.Message? message;
213213

214-
if (partialMessage is types.PartialFile) {
214+
if (partialMessage is types.PartialCustom) {
215+
message = types.CustomMessage.fromPartial(
216+
author: types.User(id: firebaseUser!.uid),
217+
id: '',
218+
partialCustom: partialMessage,
219+
);
220+
} else if (partialMessage is types.PartialFile) {
215221
message = types.FileMessage.fromPartial(
216222
author: types.User(id: firebaseUser!.uid),
217223
id: '',

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: flutter_firebase_chat_core
22
description: >
33
Actively maintained, community-driven Firebase BaaS for chat applications
44
with an optional chat UI.
5-
version: 1.1.3
5+
version: 1.1.4
66
homepage: https://flyer.chat
77
repository: https://github.com/flyerhq/flutter_firebase_chat_core
88

@@ -15,7 +15,7 @@ dependencies:
1515
sdk: flutter
1616
cloud_firestore: ^2.4.0
1717
firebase_auth: ^3.0.1
18-
flutter_chat_types: ^2.4.1
18+
flutter_chat_types: ^2.4.3
1919
meta: ^1.3.0
2020

2121
dev_dependencies:

0 commit comments

Comments
 (0)