Migrated llc Lists to be nullable instead of being an empty array

This commit is contained in:
Ayush Shekhar
2022-04-26 21:11:24 +05:30
parent 381e1c06f5
commit b6bb3608e5
23 changed files with 178 additions and 153 deletions
@@ -98,8 +98,9 @@ class HomeScreen extends StatelessWidget {
AsyncSnapshot<ChannelState?> snapshot,
) {
if (snapshot.hasData && snapshot.data != null) {
final _messages = snapshot.data!.messages ?? [];
return MessageView(
messages: snapshot.data!.messages.reversed.toList(),
messages: _messages.reversed.toList(),
channel: channel,
);
} else if (snapshot.hasError) {