Skip to content

Commit 51e005d

Browse files
authored
Merge pull request #1687 from GetStream/release/v6.8.0
2 parents 162d42b + bee807c commit 51e005d

File tree

17 files changed

+71
-12
lines changed

17 files changed

+71
-12
lines changed

packages/stream_chat/CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 6.7.0
2+
3+
✅ Added
4+
5+
- Added support for setting `Message.type`. [#1682](https://github.com/GetStream/stream-chat-flutter/issues/1682)
6+
```
7+
It is now possible to send system messages. System messages differ from normal messages in the way they are
8+
presented to the user. Like the name says, system messages are normally send from the system itself, but a user is
9+
able to send it as well by specifying type: 'system' with the message. The user who sends a system message client-side
10+
should have the Create System Message permission. Server-side system messages don't need that permission.
11+
```
12+
113
## 6.6.0
214

315
🔄 Changed

packages/stream_chat/lib/src/core/models/message.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ class Message extends Equatable {
168168
late final MessageState state;
169169

170170
/// The message type.
171-
@JsonKey(includeToJson: false)
172171
final String type;
173172

174173
/// The list of attachments, either provided by the user or generated from a

packages/stream_chat/lib/src/core/models/message.g.dart

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/stream_chat/lib/version.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ import 'package:stream_chat/src/client/client.dart';
33
/// Current package version
44
/// Used in [StreamChatClient] to build the `x-stream-client` header
55
// ignore: constant_identifier_names
6-
const PACKAGE_VERSION = '6.6.0';
6+
const PACKAGE_VERSION = '6.7.0';

packages/stream_chat/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: stream_chat
22
homepage: https://getstream.io/
33
description: The official Dart client for Stream Chat, a service for building chat applications.
4-
version: 6.6.0
4+
version: 6.7.0
55
repository: https://github.com/GetStream/stream-chat-flutter
66
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
77

packages/stream_chat/test/fixtures/channel_state_to_json.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"messages": [
1515
{
1616
"id": "dry-meadow-0-2b73cc8b-cd86-4a01-8d40-bd82ad07a030",
17+
"type": "regular",
1718
"text": "fasdfa",
1819
"attachments": [],
1920
"parent_id": null,
@@ -27,6 +28,7 @@
2728
},
2829
{
2930
"id": "dry-meadow-0-e8e74482-b4cd-48db-9d1e-30e6c191786f",
31+
"type": "regular",
3032
"text": "test message",
3133
"attachments": [],
3234
"parent_id": null,
@@ -40,6 +42,7 @@
4042
},
4143
{
4244
"id": "dry-meadow-0-53e6299f-9b97-4a9c-a27e-7e2dde49b7e0",
45+
"type": "regular",
4346
"text": "test message",
4447
"attachments": [],
4548
"parent_id": null,
@@ -53,6 +56,7 @@
5356
},
5457
{
5558
"id": "dry-meadow-0-80925be0-786e-40a5-b225-486518dafd35",
59+
"type": "regular",
5660
"text": "asdfadf",
5761
"attachments": [],
5862
"parent_id": null,
@@ -66,6 +70,7 @@
6670
},
6771
{
6872
"id": "dry-meadow-0-64d7970f-ede8-4b31-9738-1bc1756d2bfe",
73+
"type": "regular",
6974
"text": "test",
7075
"attachments": [],
7176
"parent_id": null,
@@ -79,6 +84,7 @@
7984
},
8085
{
8186
"id": "withered-cell-0-84cbd760-cf55-4f7e-9207-c5f66cccc6dc",
87+
"type": "regular",
8288
"text": "hi",
8389
"attachments": [],
8490
"parent_id": null,
@@ -92,6 +98,7 @@
9298
},
9399
{
94100
"id": "dry-meadow-0-e9203588-43c3-40b1-91f7-f217fc42aa53",
101+
"type": "regular",
95102
"text": "fantastic",
96103
"attachments": [],
97104
"parent_id": null,
@@ -105,6 +112,7 @@
105112
},
106113
{
107114
"id": "withered-cell-0-7e3552d7-7a0d-45f2-a856-e91b23a7e240",
115+
"type": "regular",
108116
"text": "nice to meet you",
109117
"attachments": [],
110118
"parent_id": null,
@@ -118,6 +126,7 @@
118126
},
119127
{
120128
"id": "dry-meadow-0-1ffeafd4-e4fc-4c84-9394-9d7cb10fff42",
129+
"type": "regular",
121130
"text": "hey",
122131
"attachments": [],
123132
"parent_id": null,
@@ -131,6 +140,7 @@
131140
},
132141
{
133142
"id": "dry-meadow-0-3f147324-12c8-4b41-9fb5-2db88d065efa",
143+
"type": "regular",
134144
"text": "hello, everyone",
135145
"attachments": [],
136146
"parent_id": null,
@@ -144,6 +154,7 @@
144154
},
145155
{
146156
"id": "dry-meadow-0-51a348ae-0c0a-44de-a556-eac7891c0cf0",
157+
"type": "regular",
147158
"text": "who is there?",
148159
"attachments": [],
149160
"parent_id": null,
@@ -157,6 +168,7 @@
157168
},
158169
{
159170
"id": "icy-recipe-7-a29e237b-8d81-4a97-9bc8-d42bca3f1356",
171+
"type": "regular",
160172
"text": "하이",
161173
"attachments": [],
162174
"parent_id": null,
@@ -170,6 +182,7 @@
170182
},
171183
{
172184
"id": "icy-recipe-7-935c396e-ddf8-4a9a-951c-0a12fa5bf055",
185+
"type": "regular",
173186
"text": "what are you doing?",
174187
"attachments": [],
175188
"parent_id": null,
@@ -183,6 +196,7 @@
183196
},
184197
{
185198
"id": "throbbing-boat-5-1e4d5730-5ff0-4d25-9948-9f34ffda43e4",
199+
"type": "regular",
186200
"text": "👍",
187201
"attachments": [],
188202
"parent_id": null,
@@ -196,6 +210,7 @@
196210
},
197211
{
198212
"id": "snowy-credit-3-3e0c1a0d-d22f-42ee-b2a1-f9f49477bf21",
213+
"type": "regular",
199214
"text": "sdasas",
200215
"attachments": [],
201216
"parent_id": null,
@@ -209,6 +224,7 @@
209224
},
210225
{
211226
"id": "snowy-credit-3-3319537e-2d0e-4876-8170-a54f046e4b7d",
227+
"type": "regular",
212228
"text": "cjshsa",
213229
"attachments": [],
214230
"parent_id": null,
@@ -222,6 +238,7 @@
222238
},
223239
{
224240
"id": "snowy-credit-3-cfaf0b46-1daa-49c5-947c-b16d6697487d",
241+
"type": "regular",
225242
"text": "nhisagdhsadz",
226243
"attachments": [],
227244
"parent_id": null,
@@ -235,6 +252,7 @@
235252
},
236253
{
237254
"id": "snowy-credit-3-cebe25a7-a3a3-49fc-9919-91c6725e81f3",
255+
"type": "regular",
238256
"text": "hvadhsahzd",
239257
"attachments": [],
240258
"parent_id": null,
@@ -248,6 +266,7 @@
248266
},
249267
{
250268
"id": "divine-glade-9-0cea9262-5766-48e9-8b22-311870aed3bf",
269+
"type": "regular",
251270
"text": "hello",
252271
"attachments": [],
253272
"parent_id": null,
@@ -261,6 +280,7 @@
261280
},
262281
{
263282
"id": "red-firefly-9-c4e9007b-bb7d-4238-ae08-5f8e3cd03d73",
283+
"type": "regular",
264284
"text": "hello",
265285
"attachments": [],
266286
"parent_id": null,
@@ -274,6 +294,7 @@
274294
},
275295
{
276296
"id": "bitter-glade-2-02aee4eb-4093-4736-808b-2de75820e854",
297+
"type": "regular",
277298
"text": "hello",
278299
"attachments": [],
279300
"parent_id": null,
@@ -287,6 +308,7 @@
287308
},
288309
{
289310
"id": "morning-sea-1-0c700bcb-46dd-4224-b590-e77bdbccc480",
311+
"type": "regular",
290312
"text": "http://jaeger.ui.gtstrm.com/",
291313
"attachments": [],
292314
"parent_id": null,
@@ -300,6 +322,7 @@
300322
},
301323
{
302324
"id": "ancient-salad-0-53e8b4e6-5b7b-43ad-aeee-8bfb6a9ed0be",
325+
"type": "regular",
303326
"text": "hi",
304327
"attachments": [],
305328
"parent_id": null,
@@ -313,6 +336,7 @@
313336
},
314337
{
315338
"id": "ancient-salad-0-8c225075-bd4c-42e2-8024-530aae13cd40",
339+
"type": "regular",
316340
"text": "hi",
317341
"attachments": [],
318342
"parent_id": null,
@@ -326,6 +350,7 @@
326350
},
327351
{
328352
"id": "proud-sea-7-17802096-cbf8-4e3c-addd-4ee31f4c8b5c",
353+
"type": "regular",
329354
"text": "😃",
330355
"attachments": [],
331356
"parent_id": null,

packages/stream_chat/test/fixtures/message_to_json.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"id": "4637f7e4-a06b-42db-ba5a-8d8270dd926f",
3+
"type": "regular",
34
"text": "https://giphy.com/gifs/the-lion-king-live-action-5zvN79uTGfLMOVfQaA",
45
"silent": false,
56
"attachments": [

packages/stream_chat_flutter/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## 6.8.0
2+
3+
🔄 Changed
4+
5+
- Updated `stream_chat_flutter_core` dependency
6+
to [`6.7.0`](https://pub.dev/packages/stream_chat_flutter_core/changelog).
7+
18
## 6.7.0
29

310
🔄 Changed

packages/stream_chat_flutter/lib/src/message_widget/message_card.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ class _MessageCardState extends State<MessageCard> {
220220

221221
return StreamUrlAttachment(
222222
key: linksKey,
223+
onLinkTap: widget.onLinkTap,
223224
urlAttachment: urlAttachment,
224225
hostDisplayName: hostDisplayName,
225226
textPadding: widget.textPadding,

packages/stream_chat_flutter/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: stream_chat_flutter
22
homepage: https://github.com/GetStream/stream-chat-flutter
33
description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.
4-
version: 6.7.0
4+
version: 6.8.0
55
repository: https://github.com/GetStream/stream-chat-flutter
66
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
77

@@ -38,7 +38,7 @@ dependencies:
3838
rxdart: ^0.27.7
3939
share_plus: ^7.0.2
4040
shimmer: ^3.0.0
41-
stream_chat_flutter_core: ^6.6.0
41+
stream_chat_flutter_core: ^6.7.0
4242
synchronized: ^3.1.0
4343
thumblr: ^0.0.4
4444
url_launcher: ^6.1.11

packages/stream_chat_flutter_core/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 6.7.0
2+
3+
- Updated `stream_chat` dependency to [`6.7.0`](https://pub.dev/packages/stream_chat/changelog).
4+
15
## 6.6.0
26

37
- Updated `stream_chat` dependency to [`6.6.0`](https://pub.dev/packages/stream_chat/changelog).

packages/stream_chat_flutter_core/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: stream_chat_flutter_core
22
homepage: https://github.com/GetStream/stream-chat-flutter
33
description: Stream Chat official Flutter SDK Core. Build your own chat experience using Dart and Flutter.
4-
version: 6.6.0
4+
version: 6.7.0
55
repository: https://github.com/GetStream/stream-chat-flutter
66
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
77

@@ -17,7 +17,7 @@ dependencies:
1717
freezed_annotation: ^2.2.0
1818
meta: ^1.8.0
1919
rxdart: ^0.27.7
20-
stream_chat: ^6.6.0
20+
stream_chat: ^6.7.0
2121

2222
dev_dependencies:
2323
build_runner: ^2.3.3

packages/stream_chat_localizations/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 5.8.0
2+
3+
* Updated `stream_chat_flutter` dependency to [`6.8.0`](https://pub.dev/packages/stream_chat_flutter/changelog).
4+
15
## 5.7.0
26

37
* Updated `stream_chat_flutter` dependency to [`6.7.0`](https://pub.dev/packages/stream_chat_flutter/changelog).

packages/stream_chat_localizations/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: stream_chat_localizations
22
description: The Official localizations for Stream Chat Flutter, a service for building chat applications
3-
version: 5.7.0
3+
version: 5.8.0
44
homepage: https://github.com/GetStream/stream-chat-flutter
55
repository: https://github.com/GetStream/stream-chat-flutter
66
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
@@ -14,7 +14,7 @@ dependencies:
1414
sdk: flutter
1515
flutter_localizations:
1616
sdk: flutter
17-
stream_chat_flutter: ^6.7.0
17+
stream_chat_flutter: ^6.8.0
1818

1919
dev_dependencies:
2020
flutter_test:

packages/stream_chat_persistence/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 6.7.0
2+
3+
- [[#1683]](https://github.com/GetStream/stream-chat-flutter/issues/1683) Fixed SqliteException no such
4+
column `messages.state`.
5+
16
## 6.6.0
27

38
- Updated `stream_chat` dependency to [`6.6.0`](https://pub.dev/packages/stream_chat/changelog).

packages/stream_chat_persistence/lib/src/db/drift_chat_database.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class DriftChatDatabase extends _$DriftChatDatabase {
4848

4949
// you should bump this number whenever you change or add a table definition.
5050
@override
51-
int get schemaVersion => 12;
51+
int get schemaVersion => 13;
5252

5353
@override
5454
MigrationStrategy get migration => MigrationStrategy(

packages/stream_chat_persistence/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: stream_chat_persistence
22
homepage: https://github.com/GetStream/stream-chat-flutter
33
description: Official Stream Chat Persistence library. Build your own chat experience using Dart and Flutter.
4-
version: 6.6.0
4+
version: 6.7.0
55
repository: https://github.com/GetStream/stream-chat-flutter
66
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
77

@@ -18,7 +18,7 @@ dependencies:
1818
path: ^1.8.2
1919
path_provider: ^2.0.15
2020
sqlite3_flutter_libs: ^0.5.15
21-
stream_chat: ^6.6.0
21+
stream_chat: ^6.7.0
2222

2323
dev_dependencies:
2424
build_runner: ^2.3.3

0 commit comments

Comments
 (0)