🐛 Bug fixes

This commit is contained in:
LittleSheep 2024-06-02 00:39:50 +08:00
parent 19c3f07212
commit f6510bf4c2
2 changed files with 4 additions and 4 deletions

View File

@ -142,7 +142,7 @@ class _ContactScreenState extends State<ContactScreen> {
child: ChatCallCurrentIndicator(), child: ChatCallCurrentIndicator(),
); );
} else { } else {
return const SizedBox(); return const SliverToBoxAdapter();
} }
}), }),
if (_isBusy) if (_isBusy)

View File

@ -38,10 +38,10 @@ class _ChannelListWidgetState extends State<ChannelListWidget> {
for (final channel in widget.channels) { for (final channel in widget.channels) {
if (channel.realmId != null) { if (channel.realmId != null) {
if (_inRealms[channel.alias] == null) { if (_inRealms[channel.realm!.alias] == null) {
_inRealms[channel.alias] = List.empty(growable: true); _inRealms[channel.realm!.alias] = List.empty(growable: true);
} }
_inRealms[channel.alias]!.add(channel); _inRealms[channel.realm!.alias]!.add(channel);
} else if (channel.type == 1) { } else if (channel.type == 1) {
_directMessages.add(channel); _directMessages.add(channel);
} else { } else {