Skip to content

Commit c24f5fe

Browse files
authored
Merge pull request #1732 from GetStream/release/v6.10.0
2 parents ac416c0 + 08bc18a commit c24f5fe

File tree

29 files changed

+225
-156
lines changed

29 files changed

+225
-156
lines changed

.github/workflows/docusaurus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
name: Publish docusaurus docs
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Setup Node 16
1717
uses: actions/setup-node@v3
1818
with:

.github/workflows/legacy_version_analyze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
runs-on: ubuntu-latest
3838
steps:
3939
- name: "Git Checkout"
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141
with:
4242
fetch-depth: 0
4343

.github/workflows/pana.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
stream_chat:
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727
- uses: axel-op/dart-package-analyzer@v3
2828
id: analysis
2929
with:
@@ -43,7 +43,7 @@ jobs:
4343
stream_chat_persistence:
4444
runs-on: ubuntu-latest
4545
steps:
46-
- uses: actions/checkout@v3
46+
- uses: actions/checkout@v4
4747
- uses: axel-op/dart-package-analyzer@v3
4848
id: analysis
4949
with:
@@ -64,7 +64,7 @@ jobs:
6464
stream_chat_flutter_core:
6565
runs-on: ubuntu-latest
6666
steps:
67-
- uses: actions/checkout@v3
67+
- uses: actions/checkout@v4
6868
- uses: axel-op/dart-package-analyzer@v3
6969
id: analysis
7070
with:
@@ -84,7 +84,7 @@ jobs:
8484
stream_chat_flutter:
8585
runs-on: ubuntu-latest
8686
steps:
87-
- uses: actions/checkout@v3
87+
- uses: actions/checkout@v4
8888
- uses: axel-op/dart-package-analyzer@v3
8989
id: analysis
9090
with:
@@ -104,7 +104,7 @@ jobs:
104104
stream_chat_localizations:
105105
runs-on: ubuntu-latest
106106
steps:
107-
- uses: actions/checkout@v3
107+
- uses: actions/checkout@v4
108108
- uses: axel-op/dart-package-analyzer@v3
109109
id: analysis
110110
with:

.github/workflows/stream_flutter_workflow.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: "Git Checkout"
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434
with:
3535
fetch-depth: 0
3636
- name: "Install Flutter"
@@ -57,14 +57,14 @@ jobs:
5757
timeout-minutes: 15
5858
steps:
5959
- name: "Git Checkout"
60-
uses: actions/checkout@v3
60+
uses: actions/checkout@v4
6161
with:
6262
fetch-depth: 0
6363
- name: "Install Flutter"
6464
uses: subosito/flutter-action@v2
6565
with:
6666
cache: true
67-
flutter-version: ${{ env.flutter_version }}
67+
channel: ${{ env.flutter_channel }}
6868
- name: "Install Tools"
6969
run: |
7070
flutter pub global activate melos
@@ -82,14 +82,14 @@ jobs:
8282
timeout-minutes: 30
8383
steps:
8484
- name: "Git Checkout"
85-
uses: actions/checkout@v3
85+
uses: actions/checkout@v4
8686
with:
8787
fetch-depth: 0
8888
- name: "Install Flutter"
8989
uses: subosito/flutter-action@v2
9090
with:
9191
cache: true
92-
flutter-version: ${{ env.flutter_version }}
92+
channel: ${{ env.flutter_channel }}
9393
- name: "Install Tools"
9494
run: |
9595
flutter pub global activate melos

.github/workflows/vale-doc-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Vale doc linter
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111
- uses: errata-ai/vale-action@reviewdog
1212
with:
1313
# added, diff_context, file, nofilter

packages/stream_chat/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 6.9.0
2+
3+
🐞 Fixed
4+
5+
- [[#1716]](https://github.com/GetStream/stream-chat-flutter/issues/1716) Fixed client not able to
6+
update message with `type: reply`.
7+
- [[#1724]](https://github.com/GetStream/stream-chat-flutter/issues/1724) Fixed sendFile error
8+
on `AttachmentFile` with `bytes` and no `name`.
9+
110
## 6.8.0
211

312
🐞 Fixed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ class AttachmentFile {
7474
if (CurrentPlatform.isWeb) {
7575
multiPartFile = MultipartFile.fromBytes(
7676
bytes!,
77-
filename: name,
77+
filename: name ?? 'file',
7878
contentType: mimeType,
7979
);
8080
} else {
8181
multiPartFile = await MultipartFile.fromFile(
8282
path!,
83-
filename: name,
83+
filename: name ?? 'file',
8484
contentType: mimeType,
8585
);
8686
}

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

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

170170
/// The message type.
171+
@JsonKey(includeIfNull: false, toJson: _typeToJson)
171172
final String type;
172173

174+
// We need to skip passing type if it's not regular or system as the API
175+
// does not expect it.
176+
static String? _typeToJson(String type) {
177+
if (['regular', 'system'].contains(type)) return type;
178+
return null;
179+
}
180+
173181
/// The list of attachments, either provided by the user or generated from a
174182
/// command or as a result of URL scraping.
175183
@JsonKey(includeIfNull: false)

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

Lines changed: 24 additions & 14 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.8.0';
6+
const PACKAGE_VERSION = '6.9.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.8.0
4+
version: 6.9.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_flutter/CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 6.10.0
2+
3+
🐞 Fixed
4+
5+
- [[#1721]](https://github.com/GetStream/stream-chat-flutter/issues/1721)
6+
Fixed `StreamMessageInput.allowedAttachmentPickerTypes` not working on mobile devices.
7+
8+
✅ Added
9+
10+
- Added support for overriding the `MessageWidget.onReactionsHover` callback.
11+
> **Note**
12+
> Used only in desktop devices (web and desktop).
13+
114
## 6.9.0
215

316
🐞 Fixed
@@ -11,7 +24,8 @@
1124

1225
- Added support for listening error events in AttachmentPickerBottomSheet.
1326
- Added support for overriding the `MessageWidget.onReactionTap` callback.
14-
- Added support for `StreamMessageInput.contentInsertionConfiguration` to specify the content insertion configuration.
27+
- Added support for `StreamMessageInput.contentInsertionConfiguration` to specify the content
28+
insertion configuration.
1529
[#1613](https://github.com/GetStream/stream-chat-flutter/issues/1613)
1630

1731
```dart

packages/stream_chat_flutter/example/macos/Runner.xcodeproj/project.pbxproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@
159159
C4CD72858CD59598795BB48E /* Pods-Runner.release.xcconfig */,
160160
2BCA7399119839DE435DACD6 /* Pods-Runner.profile.xcconfig */,
161161
);
162-
name = Pods;
163162
path = Pods;
164163
sourceTree = "<group>";
165164
};
@@ -203,7 +202,7 @@
203202
isa = PBXProject;
204203
attributes = {
205204
LastSwiftUpdateCheck = 0920;
206-
LastUpgradeCheck = 1300;
205+
LastUpgradeCheck = 1430;
207206
ORGANIZATIONNAME = "";
208207
TargetAttributes = {
209208
33CC10EC2044A3C60003C045 = {
@@ -427,7 +426,7 @@
427426
"$(inherited)",
428427
"@executable_path/../Frameworks",
429428
);
430-
MACOSX_DEPLOYMENT_TARGET = 10.15;
429+
MACOSX_DEPLOYMENT_TARGET = 11.0;
431430
PROVISIONING_PROFILE_SPECIFIER = "";
432431
SWIFT_VERSION = 5.0;
433432
};
@@ -554,7 +553,7 @@
554553
"$(inherited)",
555554
"@executable_path/../Frameworks",
556555
);
557-
MACOSX_DEPLOYMENT_TARGET = 10.15;
556+
MACOSX_DEPLOYMENT_TARGET = 11.0;
558557
PROVISIONING_PROFILE_SPECIFIER = "";
559558
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
560559
SWIFT_VERSION = 5.0;
@@ -575,7 +574,7 @@
575574
"$(inherited)",
576575
"@executable_path/../Frameworks",
577576
);
578-
MACOSX_DEPLOYMENT_TARGET = 10.15;
577+
MACOSX_DEPLOYMENT_TARGET = 11.0;
579578
PROVISIONING_PROFILE_SPECIFIER = "";
580579
SWIFT_VERSION = 5.0;
581580
};

packages/stream_chat_flutter/example/macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1300"
3+
LastUpgradeVersion = "1430"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

packages/stream_chat_flutter/lib/src/message_input/attachment_picker/stream_attachment_picker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ Widget mobileAttachmentPickerBuilder({
799799
);
800800
},
801801
),
802-
}..where((option) => option.supportedTypes.every(allowedTypes.contains)),
802+
}.where((option) => option.supportedTypes.every(allowedTypes.contains)),
803803
},
804804
);
805805
}

0 commit comments

Comments
 (0)