fix(core): video attachment upload (#1754)
* fix video attachment upload * fix test * add changelog
This commit is contained in:
@@ -7,8 +7,8 @@ class StreamHttpClientOptions {
|
|||||||
/// Instantiates a new [StreamHttpClientOptions]
|
/// Instantiates a new [StreamHttpClientOptions]
|
||||||
const StreamHttpClientOptions({
|
const StreamHttpClientOptions({
|
||||||
String? baseUrl,
|
String? baseUrl,
|
||||||
this.connectTimeout = const Duration(seconds: 6),
|
this.connectTimeout = const Duration(seconds: 30),
|
||||||
this.receiveTimeout = const Duration(seconds: 6),
|
this.receiveTimeout = const Duration(seconds: 30),
|
||||||
this.queryParameters = const {},
|
this.queryParameters = const {},
|
||||||
this.headers = const {},
|
this.headers = const {},
|
||||||
}) : baseUrl = baseUrl ?? _defaultBaseURL;
|
}) : baseUrl = baseUrl ?? _defaultBaseURL;
|
||||||
@@ -16,10 +16,10 @@ class StreamHttpClientOptions {
|
|||||||
/// base url to use with client.
|
/// base url to use with client.
|
||||||
final String baseUrl;
|
final String baseUrl;
|
||||||
|
|
||||||
/// connect timeout, default to 6s
|
/// connect timeout, default to 30s
|
||||||
final Duration connectTimeout;
|
final Duration connectTimeout;
|
||||||
|
|
||||||
/// received timeout, default to 6s
|
/// received timeout, default to 30s
|
||||||
final Duration receiveTimeout;
|
final Duration receiveTimeout;
|
||||||
|
|
||||||
/// Common query parameters.
|
/// Common query parameters.
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ void main() {
|
|||||||
test('should return the all default set params', () {
|
test('should return the all default set params', () {
|
||||||
const options = StreamHttpClientOptions();
|
const options = StreamHttpClientOptions();
|
||||||
expect(options.baseUrl, 'https://chat.stream-io-api.com');
|
expect(options.baseUrl, 'https://chat.stream-io-api.com');
|
||||||
expect(options.connectTimeout, const Duration(seconds: 6));
|
expect(options.connectTimeout, const Duration(seconds: 30));
|
||||||
expect(options.receiveTimeout, const Duration(seconds: 6));
|
expect(options.receiveTimeout, const Duration(seconds: 30));
|
||||||
expect(options.queryParameters, const {});
|
expect(options.queryParameters, const {});
|
||||||
expect(options.headers, 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
|
## 6.10.0
|
||||||
|
|
||||||
- Added mixin support to `StreamChannelListEventHandler`.
|
- Added mixin support to `StreamChannelListEventHandler`.
|
||||||
|
|||||||
Reference in New Issue
Block a user