Skip to content

Commit

Permalink
fix(neon): push notification build error
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
  • Loading branch information
Leptopoda committed Oct 17, 2023
1 parent 7a51110 commit a5881c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/neon/neon/lib/src/models/push_notification.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:meta/meta.dart';
import 'package:nextcloud/notifications.dart' as notifications;
import 'package:nextcloud/notifications.dart' show DecryptedSubject, RSAPrivateKey, decryptPushNotificationSubject;

part 'push_notification.g.dart';

Expand Down Expand Up @@ -38,9 +38,9 @@ class PushNotification {
/// Use [PushNotification.fromJson] when the [subject] is not encrypted.
factory PushNotification.fromEncrypted(
final Map<String, dynamic> json,
final notifications.RSAPrivateKey privateKey,
final RSAPrivateKey privateKey,
) {
final subject = notifications.decryptPushNotificationSubject(privateKey, json[_subjectKey] as String);
final subject = decryptPushNotificationSubject(privateKey, json[_subjectKey] as String);

return PushNotification(
accountID: json[_accountIDKey] as String,
Expand All @@ -67,5 +67,5 @@ class PushNotification {

/// The subject of this notification.
@JsonKey(name: _subjectKey)
final notifications.DecryptedSubject subject;
final DecryptedSubject subject;
}

0 comments on commit a5881c0

Please sign in to comment.