Radish alpha
r
rad:z4D5UCArafTzTQpDZNQRuqswh3ury
Radicle desktop app
Radicle
Git
Set `replyTo` and `location` fields in `Comment` to `null`
Merged did:key:z6MkkfM3...sVz5 opened 1 year ago
2 files changed +3 -4 0efb4e09 7cf21972
modified crates/radicle-types/bindings/cob/thread/Comment.ts
@@ -10,8 +10,8 @@ export type Comment<T = Never> = {
  author: Author;
  edits: Array<Edit>;
  reactions: Array<Reaction>;
-
  replyTo?: string;
-
  location?: T;
+
  replyTo: string | null;
+
  location: T | null;
  embeds?: Array<Embed>;
  resolved: boolean;
};
modified crates/radicle-types/src/cobs/thread.rs
@@ -42,9 +42,8 @@ pub struct Comment<T = cobs::Never> {
    author: cobs::Author,
    edits: Vec<models::patch::Edit>,
    reactions: Vec<cobs::thread::Reaction>,
-
    #[ts(as = "Option<String>", optional)]
+
    #[ts(as = "Option<String>")]
    reply_to: Option<cob::thread::CommentId>,
-
    #[ts(optional)]
    location: Option<T>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    #[ts(as = "Option<_>", optional)]