fix #6: ChannelListView NULL error when a channel has no messages
This commit is contained in:
@@ -126,7 +126,7 @@ class _ChannelListViewState extends State<ChannelListView> {
|
||||
return widget.errorBuilder(snapshot.error);
|
||||
}
|
||||
|
||||
String message = snapshot.error.toString();
|
||||
var message = snapshot.error.toString();
|
||||
if (snapshot.error is DioError) {
|
||||
final dioError = snapshot.error as DioError;
|
||||
if (dioError.type == DioErrorType.RESPONSE) {
|
||||
|
||||
Reference in New Issue
Block a user