Skip to content

Commit

Permalink
Merge pull request #2127 from nextcloud/fix/neon_notifications/bloc-i…
Browse files Browse the repository at this point in the history
…nterface
  • Loading branch information
provokateurin authored Jun 5, 2024
2 parents d08e00e + 677bb1a commit e29de80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/neon/neon_notifications/lib/neon_notifications.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import 'package:neon_notifications/src/routes.dart';
import 'package:nextcloud/nextcloud.dart';
import 'package:rxdart/rxdart.dart';

class NotificationsApp extends AppImplementation<NotificationsBloc, NotificationsOptions>
class NotificationsApp extends AppImplementation<NotificationsBlocInterface, NotificationsOptions>
implements
// ignore: avoid_implementing_value_types
NotificationsAppInterface<NotificationsBloc, NotificationsOptions> {
NotificationsAppInterface<NotificationsBlocInterface, NotificationsOptions> {
NotificationsApp();

@override
Expand All @@ -33,7 +33,7 @@ class NotificationsApp extends AppImplementation<NotificationsBloc, Notification
late final NotificationsOptions options = NotificationsOptions(storage);

@override
NotificationsBloc buildBloc(Account account) => NotificationsBloc(
NotificationsBlocInterface buildBloc(Account account) => NotificationsBloc(
account: account,
);

Expand All @@ -44,5 +44,5 @@ class NotificationsApp extends AppImplementation<NotificationsBloc, Notification
final RouteBase route = $notificationsAppRoute;

@override
BehaviorSubject<int> getUnreadCounter(NotificationsBloc bloc) => bloc.unreadCounter;
BehaviorSubject<int> getUnreadCounter(NotificationsBlocInterface bloc) => (bloc as NotificationsBloc).unreadCounter;
}

0 comments on commit e29de80

Please sign in to comment.