Merge pull request #795 from GetStream/release/3.3.0
chore(llc,core,ui): 3.3.0
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
## Upcoming
|
## 3.3.0
|
||||||
|
|
||||||
✅ Added
|
✅ Added
|
||||||
|
|
||||||
|
|||||||
@@ -1603,7 +1603,7 @@ class ChannelClientState {
|
|||||||
message.createdAt.isBefore(
|
message.createdAt.isBefore(
|
||||||
DateTime.now().subtract(
|
DateTime.now().subtract(
|
||||||
const Duration(
|
const Duration(
|
||||||
seconds: 1,
|
seconds: 5,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -82,7 +82,6 @@ abstract class ChatPersistenceClient {
|
|||||||
members: data[0] as List<Member>,
|
members: data[0] as List<Member>,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
read: data[1] as List<Read>,
|
read: data[1] as List<Read>,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
|
||||||
channel: data[2] as ChannelModel?,
|
channel: data[2] as ChannelModel?,
|
||||||
// ignore: cast_nullable_to_non_nullable
|
// ignore: cast_nullable_to_non_nullable
|
||||||
messages: data[3] as List<Message>,
|
messages: data[3] as List<Message>,
|
||||||
|
|||||||
@@ -3,4 +3,4 @@ import 'package:stream_chat/src/client/client.dart';
|
|||||||
/// Current package version
|
/// Current package version
|
||||||
/// Used in [StreamChatClient] to build the `x-stream-client` header
|
/// Used in [StreamChatClient] to build the `x-stream-client` header
|
||||||
// ignore: constant_identifier_names
|
// ignore: constant_identifier_names
|
||||||
const PACKAGE_VERSION = '3.2.0';
|
const PACKAGE_VERSION = '3.3.0';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: stream_chat
|
name: stream_chat
|
||||||
homepage: https://getstream.io/
|
homepage: https://getstream.io/
|
||||||
description: The official Dart client for Stream Chat, a service for building chat applications.
|
description: The official Dart client for Stream Chat, a service for building chat applications.
|
||||||
version: 3.2.0
|
version: 3.3.0
|
||||||
repository: https://github.com/GetStream/stream-chat-flutter
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
|
|
||||||
|
|||||||
@@ -123,27 +123,6 @@ void main() {
|
|||||||
verify(() => logger.severe(any())).called(greaterThan(0));
|
verify(() => logger.severe(any())).called(greaterThan(0));
|
||||||
});
|
});
|
||||||
|
|
||||||
test('`.lock` should lock the dio client', () async {
|
|
||||||
final client = StreamHttpClient('api-key');
|
|
||||||
expect(client.httpClient.interceptors.requestLock.locked, isFalse);
|
|
||||||
client.lock();
|
|
||||||
expect(client.httpClient.interceptors.requestLock.locked, isTrue);
|
|
||||||
});
|
|
||||||
|
|
||||||
test('`.unlock` should unlock the dio client', () async {
|
|
||||||
final client = StreamHttpClient('api-key');
|
|
||||||
expect(client.httpClient.interceptors.requestLock.locked, isFalse);
|
|
||||||
client.lock();
|
|
||||||
expect(client.httpClient.interceptors.requestLock.locked, isTrue);
|
|
||||||
client.unlock();
|
|
||||||
expect(client.httpClient.interceptors.requestLock.locked, isFalse);
|
|
||||||
});
|
|
||||||
|
|
||||||
test('`.clear` should clear and unlock the dio client', () async {
|
|
||||||
final client = StreamHttpClient('api-key')..clear();
|
|
||||||
expect(client.httpClient.interceptors.requestLock.locked, isFalse);
|
|
||||||
});
|
|
||||||
|
|
||||||
test('`.close` should close the dio client', () async {
|
test('`.close` should close the dio client', () async {
|
||||||
final client = StreamHttpClient('api-key')..close(force: true);
|
final client = StreamHttpClient('api-key')..close(force: true);
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
## Upcoming
|
## 3.3.0
|
||||||
|
|
||||||
✅ Added
|
✅ Added
|
||||||
|
|
||||||
|
|||||||
@@ -1168,7 +1168,9 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildMentionsOverlayEntry() {
|
Widget _buildMentionsOverlayEntry() {
|
||||||
if (textEditingController.value.selection.start < 0) {
|
final channel = StreamChannel.of(context).channel;
|
||||||
|
if (textEditingController.value.selection.start < 0 ||
|
||||||
|
channel.state == null) {
|
||||||
return const Offstage();
|
return const Offstage();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1197,7 +1199,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
query: query,
|
query: query,
|
||||||
mentionAllAppUsers: widget.mentionAllAppUsers,
|
mentionAllAppUsers: widget.mentionAllAppUsers,
|
||||||
client: StreamChat.of(context).client,
|
client: StreamChat.of(context).client,
|
||||||
channel: StreamChannel.of(context).channel,
|
channel: channel,
|
||||||
size: Size(renderObject.size.width - 16, 400),
|
size: Size(renderObject.size.width - 16, 400),
|
||||||
mentionsTileBuilder: tileBuilder,
|
mentionsTileBuilder: tileBuilder,
|
||||||
onMentionUserTap: (user) {
|
onMentionUserTap: (user) {
|
||||||
|
|||||||
@@ -1074,15 +1074,6 @@ class _MessageListViewState extends State<MessageListView> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
final channel = streamChannel!.channel;
|
|
||||||
final readList = channel.state?.read.where((read) {
|
|
||||||
if (read.user.id == userId) return false;
|
|
||||||
return read.lastRead.isAfter(message.createdAt) ||
|
|
||||||
read.lastRead.isAtSameMomentAs(message.createdAt);
|
|
||||||
}).toList() ??
|
|
||||||
[];
|
|
||||||
|
|
||||||
final allRead = readList.length >= (channel.memberCount ?? 0) - 1;
|
|
||||||
final hasFileAttachment =
|
final hasFileAttachment =
|
||||||
message.attachments.any((it) => it.type == 'file');
|
message.attachments.any((it) => it.type == 'file');
|
||||||
|
|
||||||
@@ -1211,8 +1202,6 @@ class _MessageListViewState extends State<MessageListView> {
|
|||||||
messageTheme: isMyMessage
|
messageTheme: isMyMessage
|
||||||
? _streamTheme.ownMessageTheme
|
? _streamTheme.ownMessageTheme
|
||||||
: _streamTheme.otherMessageTheme,
|
: _streamTheme.otherMessageTheme,
|
||||||
readList: readList,
|
|
||||||
allRead: allRead,
|
|
||||||
onReturnAction: (action) {
|
onReturnAction: (action) {
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case ReturnActionType.none:
|
case ReturnActionType.none:
|
||||||
|
|||||||
@@ -514,7 +514,6 @@ class MessageWidget extends StatefulWidget {
|
|||||||
showUserAvatar: showUserAvatar ?? this.showUserAvatar,
|
showUserAvatar: showUserAvatar ?? this.showUserAvatar,
|
||||||
showSendingIndicator: showSendingIndicator ?? this.showSendingIndicator,
|
showSendingIndicator: showSendingIndicator ?? this.showSendingIndicator,
|
||||||
showReactions: showReactions ?? this.showReactions,
|
showReactions: showReactions ?? this.showReactions,
|
||||||
allRead: allRead ?? this.allRead,
|
|
||||||
showThreadReplyIndicator:
|
showThreadReplyIndicator:
|
||||||
showThreadReplyIndicator ?? this.showThreadReplyIndicator,
|
showThreadReplyIndicator ?? this.showThreadReplyIndicator,
|
||||||
showInChannelIndicator:
|
showInChannelIndicator:
|
||||||
@@ -523,7 +522,6 @@ class MessageWidget extends StatefulWidget {
|
|||||||
onLinkTap: onLinkTap ?? this.onLinkTap,
|
onLinkTap: onLinkTap ?? this.onLinkTap,
|
||||||
showReactionPickerIndicator:
|
showReactionPickerIndicator:
|
||||||
showReactionPickerIndicator ?? this.showReactionPickerIndicator,
|
showReactionPickerIndicator ?? this.showReactionPickerIndicator,
|
||||||
readList: readList ?? this.readList,
|
|
||||||
onShowMessage: onShowMessage ?? this.onShowMessage,
|
onShowMessage: onShowMessage ?? this.onShowMessage,
|
||||||
onReturnAction: onReturnAction ?? this.onReturnAction,
|
onReturnAction: onReturnAction ?? this.onReturnAction,
|
||||||
showUsername: showUsername ?? this.showUsername,
|
showUsername: showUsername ?? this.showUsername,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: stream_chat_flutter
|
name: stream_chat_flutter
|
||||||
homepage: https://github.com/GetStream/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.
|
description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.
|
||||||
version: 3.2.0
|
version: 3.3.0
|
||||||
repository: https://github.com/GetStream/stream-chat-flutter
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
## 3.3.0
|
||||||
|
|
||||||
|
- Updated `stream_chat` dependency to [`3.3.0`](https://pub.dev/packages/stream_chat/changelog).
|
||||||
|
|
||||||
## 3.2.0
|
## 3.2.0
|
||||||
|
|
||||||
- Updated `stream_chat` dependency to [`3.2.0`](https://pub.dev/packages/stream_chat/changelog).
|
- Updated `stream_chat` dependency to [`3.2.0`](https://pub.dev/packages/stream_chat/changelog).
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
name: stream_chat_flutter_core
|
name: stream_chat_flutter_core
|
||||||
homepage: https://github.com/GetStream/stream-chat-flutter
|
homepage: https://github.com/GetStream/stream-chat-flutter
|
||||||
description: Stream Chat official Flutter SDK Core. Build your own chat experience using Dart and Flutter.
|
description: Stream Chat official Flutter SDK Core. Build your own chat experience using Dart and Flutter.
|
||||||
version: 3.2.0
|
version: 3.3.0
|
||||||
repository: https://github.com/GetStream/stream-chat-flutter
|
repository: https://github.com/GetStream/stream-chat-flutter
|
||||||
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues
|
||||||
|
|
||||||
@@ -16,7 +16,7 @@ dependencies:
|
|||||||
sdk: flutter
|
sdk: flutter
|
||||||
meta: ^1.3.0
|
meta: ^1.3.0
|
||||||
rxdart: ^0.27.0
|
rxdart: ^0.27.0
|
||||||
stream_chat: ^3.2.0
|
stream_chat: ^3.3.0
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
dart_code_metrics: ^4.4.0
|
dart_code_metrics: ^4.4.0
|
||||||
|
|||||||
Reference in New Issue
Block a user