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