From 15ebfb6caaf4aebd25ff8e8aac0e5ea76c9c3adc Mon Sep 17 00:00:00 2001 From: shilangyu Date: Mon, 28 Sep 2020 20:24:30 +0200 Subject: [PATCH] replying to comments now works, fixes #58 --- lib/widgets/write_comment.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/write_comment.dart b/lib/widgets/write_comment.dart index 9d88596..c11278a 100644 --- a/lib/widgets/write_comment.dart +++ b/lib/widgets/write_comment.dart @@ -62,7 +62,7 @@ class WriteComment extends HookWidget { final res = await api.createComment( content: controller.text, postId: post?.id ?? comment.postId, - parentId: comment?.parentId, + parentId: comment?.id, auth: token.raw); Navigator.of(context).pop(res); // ignore: avoid_catches_without_on_clauses