From 40cea617ee94d52c61e8f40c4d0334a2241de61a Mon Sep 17 00:00:00 2001 From: Oleg Silkin Date: Sun, 2 Feb 2020 21:16:00 -0500 Subject: [PATCH] Creates new redux store for replies --- flow-typed/Comment.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flow-typed/Comment.js b/flow-typed/Comment.js index 64ea974..f06ee9a 100644 --- a/flow-typed/Comment.js +++ b/flow-typed/Comment.js @@ -10,12 +10,14 @@ declare type Comment = { signature?: string, // signature of comment by originating channel signing_ts?: string, // timestamp used when signing this comment is_channel_signature_valid?: boolean, // whether or not the signature could be validated - parent_id?: number, // comment_id of comment this is in reply to + parent_id?: string, // if present, the comment is a reply }; -// todo: relate individual comments to their commentId +// todo: implement --is_mine for comment_list +// todo: rename byId to commentsByClaimId declare type CommentsState = { commentsByUri: { [string]: string }, + repliesByCommentId: { [string]: Array }, byId: { [string]: Array }, commentById: { [string]: Comment }, isLoading: boolean,