chore: move message search bloc

This commit is contained in:
Gordon Hayes
2021-12-08 15:14:23 +01:00
parent 2ceab092e4
commit 95013f7e97
2 changed files with 117 additions and 115 deletions
@@ -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(),
], ],
), ),