From a5881c0901f3b55a48987c1ea06ab5f082ee041f Mon Sep 17 00:00:00 2001 From: Nikolas Rimikis Date: Tue, 17 Oct 2023 22:33:13 +0200 Subject: [PATCH] fix(neon): push notification build error Signed-off-by: Nikolas Rimikis --- packages/neon/neon/lib/src/models/push_notification.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/neon/neon/lib/src/models/push_notification.dart b/packages/neon/neon/lib/src/models/push_notification.dart index 0951d498..83dede8b 100644 --- a/packages/neon/neon/lib/src/models/push_notification.dart +++ b/packages/neon/neon/lib/src/models/push_notification.dart @@ -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'; @@ -38,9 +38,9 @@ class PushNotification { /// Use [PushNotification.fromJson] when the [subject] is not encrypted. factory PushNotification.fromEncrypted( final Map 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, @@ -67,5 +67,5 @@ class PushNotification { /// The subject of this notification. @JsonKey(name: _subjectKey) - final notifications.DecryptedSubject subject; + final DecryptedSubject subject; }