From 208a4ac1ae4376f4ec715264cd139aef15702377 Mon Sep 17 00:00:00 2001 From: krawieck Date: Sun, 24 Jan 2021 21:51:07 +0100 Subject: [PATCH] fix bugs with commenting --- lib/widgets/write_comment.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/widgets/write_comment.dart b/lib/widgets/write_comment.dart index 12aae80..cff9837 100644 --- a/lib/widgets/write_comment.dart +++ b/lib/widgets/write_comment.dart @@ -69,10 +69,10 @@ CreateComment( final res = await api.run(CreateComment( content: controller.text, postId: post?.post?.id ?? comment.post.id, - parentId: comment?.comment?.id, + parentId: comment?.recipient?.id, auth: token.raw, )); - Navigator.of(context).pop(res); + Navigator.of(context).pop(res.commentView); // ignore: avoid_catches_without_on_clauses } catch (e) { print(e);