Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Implement edited Misskey notification type #499

Open
ghost opened this issue Feb 25, 2024 · 1 comment
Open

Implement edited Misskey notification type #499

ghost opened this issue Feb 25, 2024 · 1 comment
Labels
bug Something isn't working needs-triage Needs to be assigned labels

Comments

@ghost
Copy link

ghost commented Feb 25, 2024

Error Type

CheckedFromJsonException

Error Message

edited is not one of the supported values: achievementEarned, app, follow, followRequestAccepted, groupInvited, mention, note, pollEnded, pollVote, quote, reaction, receiveFollowRequest, renote, reply, test

Stack Trace

#0      $checkedConvert (package:json_annotation/src/checked_helpers.dart:91)
#1      $checkedCreate.checkedConvert (package:json_annotation/src/checked_helpers.dart:28)
#2      _$NotificationFromJson.<anonymous closure> (package:fediverse_objects/src/misskey/notification.g.dart:19)
#3      $checkedCreate.<anonymous closure> (package:json_annotation/src/checked_helpers.dart:33)
#4      $checkedNew (package:json_annotation/src/checked_helpers.dart:51)
#5      $checkedCreate (package:json_annotation/src/checked_helpers.dart:30)
#6      _$NotificationFromJson (package:fediverse_objects/src/misskey/notification.g.dart:10)
#7      new Notification.fromJson (package:fediverse_objects/src/misskey/notification.dart:54)
#8      MappedIterable.elementAt (dart:_internal/iterable.dart:385)
#9      ListIterator.moveNext (dart:_internal/iterable.dart:354)
#10     new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189)
#11     new _GrowableList.of (dart:core-patch/growable_array.dart:150)
#12     new List.of (dart:core-patch/array_patch.dart:39)
#13     SetBase.toList (dart:collection/set.dart:119)
#14     KaitekiResponseExtensions.fromJsonList (package:kaiteki_core/src/http/extensions.dart:22)
#15     KaitekiJsonDeserializationResopnseExtensions.fromResponseList (package:kaiteki_core/src/http/extensions.dart:29)
#16     KaitekiJsonDeserializationResopnseExtensions.fromResponseList.<anonymous closure> (package:kaiteki_core/src/http/extensions.dart:29)
<asynchronous suspension>
#17     MisskeyAdapter.getNotifications (package:kaiteki_core/src/social/backends/misskey/adapter.dart:444)
<asynchronous suspension>
#18     NotificationService.build (package:kaiteki/fediverse/services/notifications.dart:51)
<asynchronous suspension>
#19     FutureHandlerProviderElementMixin.handleFuture.<anonymous closure>.<anonymous closure> (package:riverpod/src/async_notifier/base.dart:348)
<asynchronous suspension>

Additional information

Platform: android: AP21.240119.009
Version: Weekly 2024-02 (1705280534)
Backend: (sakurajima.social, MisskeyAdapter, ApiType.misskey)

@ghost ghost added bug Something isn't working needs-triage Needs to be assigned labels labels Feb 25, 2024
@Craftplacer Craftplacer changed the title CheckedFromJsonException Implement edited Misskey notification type Feb 25, 2024
@Mar0xy
Copy link

Mar0xy commented Feb 25, 2024

This would actually require slight separation of Misskey and Sharkey as the edited type is something from Sharkey for note edits

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working needs-triage Needs to be assigned labels
Projects
Status: Inbox
Development

No branches or pull requests

1 participant