Skip to content

Commit

Permalink
Merge pull request #293 from GetStream/hotfix/queryChannels
Browse files Browse the repository at this point in the history
remove future once it's completed
  • Loading branch information
imtoori authored Mar 1, 2021
2 parents 9ded225 + c0271b2 commit 586e9da
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 8 deletions.
4 changes: 4 additions & 0 deletions packages/stream_chat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.2-beta

- Fixed queryChannels bug

## 1.3.1-beta

- Debounced frequent db calls
Expand Down
4 changes: 3 additions & 1 deletion packages/stream_chat/lib/src/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,9 @@ class StreamChatClient {
options: options,
paginationParams: paginationParams,
messageLimit: messageLimit,
);
).whenComplete(() {
_queryChannelsStreams.remove(hash);
});

_queryChannelsStreams[hash] = newQueryChannelsFuture;

Expand Down
2 changes: 1 addition & 1 deletion packages/stream_chat/lib/version.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ import 'package:stream_chat/src/client.dart';

/// Current package version
/// Used in [StreamChatClient] to build the `x-stream-client` header
const PACKAGE_VERSION = '1.3.1-beta';
const PACKAGE_VERSION = '1.3.2-beta';
2 changes: 1 addition & 1 deletion packages/stream_chat/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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: 1.3.1-beta
version: 1.3.2-beta
repository: https://github.com/GetStream/stream-chat-flutter
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues

Expand Down
5 changes: 5 additions & 0 deletions packages/stream_chat_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.3.2-beta

- Updated `stream_chat_core` dependency
- Fixed minor bugs

## 1.3.1-beta

- Updated `stream_chat_core` dependency
Expand Down
4 changes: 3 additions & 1 deletion packages/stream_chat_flutter/lib/src/channel_name.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ class ChannelName extends StatelessWidget {
if (extraData['name'] == null) {
final otherMembers =
members.where((member) => member.userId != client.user.id);
if (otherMembers.isNotEmpty) {
if (otherMembers.length == 1) {
title = otherMembers.first.user.name;
} else if (otherMembers.isNotEmpty) {
final maxWidth = constraints.maxWidth;
final maxChars = maxWidth / textStyle.fontSize;
var currentChars = 0;
Expand Down
4 changes: 2 additions & 2 deletions packages/stream_chat_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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: 1.3.1-beta
version: 1.3.2-beta
repository: https://github.com/GetStream/stream-chat-flutter
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues

Expand All @@ -11,7 +11,7 @@ environment:
dependencies:
flutter:
sdk: flutter
stream_chat_flutter_core: ^1.3.0-beta
stream_chat_flutter_core: ^1.3.2-beta
flutter_app_badger: ^1.1.2
photo_view: ^0.10.3
rxdart: ^0.25.0
Expand Down
4 changes: 4 additions & 0 deletions packages/stream_chat_flutter_core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.3.2-beta

* Update llc dependency

## 1.3.1-beta

* Update llc dependency
Expand Down
4 changes: 2 additions & 2 deletions packages/stream_chat_flutter_core/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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: 1.3.1-beta
version: 1.3.2-beta
repository: https://github.com/GetStream/stream-chat-flutter
issue_tracker: https://github.com/GetStream/stream-chat-flutter/issues

Expand All @@ -10,7 +10,7 @@ environment:
flutter: ">=1.17.0"

dependencies:
stream_chat: ^1.3.1-beta
stream_chat: ^1.3.2-beta
flutter:
sdk: flutter
rxdart: ^0.25.0
Expand Down

0 comments on commit 586e9da

Please sign in to comment.