fix(core): video attachment upload (#1754)

* fix video attachment upload

* fix test

* add changelog
This commit is contained in:
Kanat Kiialbaev
2023-10-23 00:19:32 -07:00
committed by GitHub
parent b13aa32a2b
commit 844df20617
3 changed files with 12 additions and 6 deletions
@@ -7,8 +7,8 @@ class StreamHttpClientOptions {
/// Instantiates a new [StreamHttpClientOptions]
const StreamHttpClientOptions({
String? baseUrl,
this.connectTimeout = const Duration(seconds: 6),
this.receiveTimeout = const Duration(seconds: 6),
this.connectTimeout = const Duration(seconds: 30),
this.receiveTimeout = const Duration(seconds: 30),
this.queryParameters = const {},
this.headers = const {},
}) : baseUrl = baseUrl ?? _defaultBaseURL;
@@ -16,10 +16,10 @@ class StreamHttpClientOptions {
/// base url to use with client.
final String baseUrl;
/// connect timeout, default to 6s
/// connect timeout, default to 30s
final Duration connectTimeout;
/// received timeout, default to 6s
/// received timeout, default to 30s
final Duration receiveTimeout;
/// Common query parameters.
@@ -5,8 +5,8 @@ void main() {
test('should return the all default set params', () {
const options = StreamHttpClientOptions();
expect(options.baseUrl, 'https://chat.stream-io-api.com');
expect(options.connectTimeout, const Duration(seconds: 6));
expect(options.receiveTimeout, const Duration(seconds: 6));
expect(options.connectTimeout, const Duration(seconds: 30));
expect(options.receiveTimeout, const Duration(seconds: 30));
expect(options.queryParameters, const {});
expect(options.headers, const {});
});
@@ -1,3 +1,9 @@
## UNRELEASED
🐞 Fixed
- Fixed video attachment uploading. [#1754](https://github.com/GetStream/stream-chat-flutter/pull/1754)
## 6.10.0
- Added mixin support to `StreamChannelListEventHandler`.