Migrated llc Lists to be nullable instead of being an empty array
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user