This creates a message based on a cast and converts it to a sidebar. If there is a parent cast included in the webhook event, we use the parent cast, if not, we use the tagger's cast.
Depends D13815
Example sidebar creation with commbot
Differential D13782
[keyserver] create message and sidebar based on cast will on Oct 23 2024, 10:38 PM. Authored by Tags None Referenced Files
Subscribers
Details This creates a message based on a cast and converts it to a sidebar. If there is a parent cast included in the webhook event, we use the parent cast, if not, we use the tagger's cast. Depends D13815 Example sidebar creation with commbot Triggered the creation of a new community with a webhook POST request and confirmed sidebar was correctly created in the community
Diff Detail
Event Timeline
Comment Actions Can you a share a screenshot of an example message/sidebar that is created this way?
Comment Actions feedback and rebase
Comment Actions accidentally left a console.log
|
This logic is a bit confusing.
I guess the reason we decided to store a separate deviceToken per keyserver is because we want to know if we've shared our deviceToken to that keyserver yet, not because we expect to have a different deviceToken per keyserver.
It would probably make more sense if we have a deviceTokenHasBeenUploaded: boolean in KeyserverInfo, and a deviceToken field at the top level of Redux. But we'll likely end up removing deviceTokens from keyservers soon anyways...