2019-06-12 03:14:37 +02:00
|
|
|
declare type Comment = {
|
2020-01-07 06:21:13 +01:00
|
|
|
comment: string, // comment body
|
|
|
|
comment_id: string, // sha256 digest
|
2020-01-09 23:10:54 +01:00
|
|
|
claim_id: string, // id linking to the claim this comment
|
2020-01-07 06:21:13 +01:00
|
|
|
timestamp: number, // integer representing unix-time
|
|
|
|
is_hidden: boolean, // claim owner may enable/disable this
|
|
|
|
channel_id?: string, // claimId of channel signing this comment
|
|
|
|
channel_name?: string, // name of channel claim
|
|
|
|
channel_url?: string, // full lbry url to signing channel
|
|
|
|
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
|
2019-06-12 03:14:37 +02:00
|
|
|
};
|
|
|
|
|
2020-01-07 06:21:13 +01:00
|
|
|
// todo: relate individual comments to their commentId
|
2019-06-12 03:14:37 +02:00
|
|
|
declare type CommentsState = {
|
|
|
|
commentsByUri: { [string]: string },
|
2020-01-10 03:27:23 +01:00
|
|
|
byId: { [string]: Array<string> },
|
|
|
|
commentById: { [string]: Comment },
|
2020-01-07 06:21:13 +01:00
|
|
|
isLoading: boolean,
|
2020-01-10 03:27:23 +01:00
|
|
|
myComments: ?Set<string>,
|
2020-01-07 06:21:13 +01:00
|
|
|
};
|