chore: move message search bloc
This commit is contained in:
@@ -85,8 +85,7 @@ class _ChannelList extends State<ChannelList> {
|
||||
),
|
||||
),
|
||||
],
|
||||
body: MessageSearchBloc(
|
||||
child: _isSearchActive
|
||||
body: _isSearchActive
|
||||
? MessageSearchListView(
|
||||
showErrorTile: true,
|
||||
messageQuery: _channelQuery,
|
||||
@@ -206,7 +205,6 @@ class _ChannelList extends State<ChannelList> {
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,7 +100,11 @@ class _ChannelListPageState extends State<ChannelListPage> {
|
||||
body: IndexedStack(
|
||||
index: _currentIndex,
|
||||
children: [
|
||||
ChannelsBloc(child: ChannelList()),
|
||||
ChannelsBloc(
|
||||
child: MessageSearchBloc(
|
||||
child: ChannelList(),
|
||||
),
|
||||
),
|
||||
UserMentionsPage(),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user