diff --git a/lib/src/misskey_dart_base.dart b/lib/src/misskey_dart_base.dart index e1975ee4..1ccbc106 100644 --- a/lib/src/misskey_dart_base.dart +++ b/lib/src/misskey_dart_base.dart @@ -474,7 +474,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; case NoteUpdatedEventType.updated: await onUpdated?.call(id, NoteEdited.fromJson(response));