Skip to content

Commit

Permalink
fix(ui,core): actually change packageInUse
Browse files Browse the repository at this point in the history
  • Loading branch information
imtoori committed Jun 20, 2022
1 parent b952ff4 commit a97ab61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/stream_chat/lib/stream_chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,5 @@ export 'src/core/models/user.dart';
export 'src/core/util/extension.dart';
export 'src/db/chat_persistence_client.dart';
export 'src/event_type.dart';
export 'src/stream_package.dart';
export 'src/ws/connection_status.dart';
1 change: 1 addition & 0 deletions packages/stream_chat_flutter/lib/src/stream_chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class StreamChatState extends State<StreamChat> {
connectivityStream: widget.connectivityStream,
child: Builder(
builder: (context) {
StreamChatClient.packageInUse = StreamPackage.ui;
return widget.child ?? const Offstage();
},
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class StreamChatCoreState extends State<StreamChatCore>

@override
Widget build(BuildContext context) {
StreamChatClient.packageInUse = StreamPackage.core;
return widget.child;
}

Expand Down

0 comments on commit a97ab61

Please sign in to comment.