fix bugs with commenting

This commit is contained in:
krawieck 2021-01-24 21:51:07 +01:00
parent 6555b8c614
commit 208a4ac1ae
1 changed files with 2 additions and 2 deletions

View File

@ -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);