diff --git a/lib/src/misskey_dart_base.dart b/lib/src/misskey_dart_base.dart index 59a26bc4..d371faa7 100644 --- a/lib/src/misskey_dart_base.dart +++ b/lib/src/misskey_dart_base.dart @@ -380,7 +380,7 @@ class Misskey { await onDeleted?.call(id, DateTime.parse(response["deletedAt"])); return; case NoteUpdatedEventType.pollVoted: - await onVoted?.call(response["choice"], response["userId"]); + await onVoted?.call(id, TimelineVoted.fromJson(response)); return; } },