Merge branch 'master' into develop

This commit is contained in:
Salvatore Giordano
2022-03-16 09:10:22 +01:00
9 changed files with 31 additions and 22 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
## Upcoming
## 3.5.1
🐞 Fixed
- Unread count specific to channel setting global unread count on a specific case.
- The reconnection logic for the ws is now more robust.
- `channel.unreadCount` was being set as using global unread count on a very specific case.
- The reconnection logic for the WebSocket connection is now more robust.
## 3.5.0
+1 -1
View File
@@ -3,4 +3,4 @@ import 'package:stream_chat/src/client/client.dart';
/// Current package version
/// Used in [StreamChatClient] to build the `x-stream-client` header
// ignore: constant_identifier_names
const PACKAGE_VERSION = '3.5.0';
const PACKAGE_VERSION = '3.5.1';
+2 -2
View File
@@ -1,7 +1,7 @@
name: stream_chat
homepage: https://getstream.io/
description: The official Dart client for Stream Chat, a service for building chat applications.
version: 3.5.0
version: 3.5.1
repository: https://github.com/GetStream/stream-chat-flutter
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
@@ -30,5 +30,5 @@ dev_dependencies:
dart_code_metrics: ^4.4.0
freezed: ^1.0.0
json_serializable: ^6.0.1
mocktail: ^0.2.0
mocktail: ^0.3.0
test: ^1.17.12
+3 -2
View File
@@ -1,8 +1,9 @@
## Upcoming
## 3.5.1
🐞 Fixed
- Mentions overlay now doesn't overflow when not enough height available
- Mentions overlay now doesn't overflow when there is not enough height available
- Updated `stream_chat_flutter_core` dependency to [`3.5.1`](https://pub.dev/packages/stream_chat_flutter_core/changelog).
## 3.5.0
@@ -158,7 +158,10 @@ class _MediaListViewState extends State<MediaListView> {
))
.firstOrNull;
final media = await assetList?.getAssetListPaged(_currentPage, 50);
final media = await assetList?.getAssetListPaged(
page: _currentPage,
size: 50,
);
if (media?.isNotEmpty == true) {
setState(() {
@@ -197,7 +200,7 @@ class MediaThumbnailProvider extends ImageProvider<MediaThumbnailProvider> {
DecoderCallback decode,
) async {
assert(key == this, 'Checks MediaThumbnailProvider');
final bytes = await media.thumbData;
final bytes = await media.thumbnailData;
return decode(bytes!);
}
@@ -1978,12 +1978,12 @@ class _PickerWidget extends StatefulWidget {
}
class _PickerWidgetState extends State<_PickerWidget> {
Future<bool>? requestPermission;
Future<PermissionState>? requestPermission;
@override
void initState() {
super.initState();
requestPermission = PhotoManager.requestPermission();
requestPermission = PhotoManager.requestPermissionExtend();
}
@override
@@ -1991,14 +1991,15 @@ class _PickerWidgetState extends State<_PickerWidget> {
if (widget.filePickerIndex != 0) {
return const Offstage();
}
return FutureBuilder<bool>(
return FutureBuilder<PermissionState>(
future: requestPermission,
builder: (context, snapshot) {
if (!snapshot.hasData) {
return const Offstage();
}
if (snapshot.data!) {
if ([PermissionState.authorized, PermissionState.limited]
.contains(snapshot.data)) {
if (widget.containsFile) {
return GestureDetector(
onTap: () {
+5 -5
View File
@@ -1,7 +1,7 @@
name: stream_chat_flutter
homepage: https://github.com/GetStream/stream-chat-flutter
description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.
version: 3.5.0
version: 3.5.1
repository: https://github.com/GetStream/stream-chat-flutter
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
@@ -31,12 +31,12 @@ dependencies:
lottie: ^1.0.1
meta: ^1.3.0
path_provider: ^2.0.1
photo_manager: ^1.2.6+1
photo_manager: ^2.0.1
photo_view: ^0.13.0
rxdart: ^0.27.0
share_plus: ^3.0.4
share_plus: ^4.0.1
shimmer: ^2.0.0
stream_chat_flutter_core: ^3.5.0
stream_chat_flutter_core: ^3.5.1
substring_highlight: ^1.0.26
synchronized: ^3.0.0
url_launcher: ^6.0.3
@@ -58,5 +58,5 @@ dev_dependencies:
flutter_test:
sdk: flutter
golden_toolkit: ^0.13.0
mocktail: ^0.2.0
mocktail: ^0.3.0
path: ^1.8.0
@@ -1,3 +1,7 @@
## 3.5.1
- Updated `stream_chat` dependency to [`3.5.1`](https://pub.dev/packages/stream_chat/changelog).
## 3.5.0
- Updated `stream_chat` dependency to [`3.5.0`](https://pub.dev/packages/stream_chat/changelog).
@@ -1,7 +1,7 @@
name: stream_chat_flutter_core
homepage: https://github.com/GetStream/stream-chat-flutter
description: Stream Chat official Flutter SDK Core. Build your own chat experience using Dart and Flutter.
version: 3.5.0
version: 3.5.1
repository: https://github.com/GetStream/stream-chat-flutter
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
@@ -16,12 +16,12 @@ dependencies:
sdk: flutter
meta: ^1.3.0
rxdart: ^0.27.0
stream_chat: ^3.5.0
stream_chat: ^3.5.1
dev_dependencies:
dart_code_metrics: ^4.4.0
fake_async: ^1.2.0
flutter_test:
sdk: flutter
mocktail: ^0.2.0
mocktail: ^0.3.0