feat: replace chat-cli /connect with /dm and /new - #206
Conversation
jazzz
left a comment
There was a problem hiding this comment.
All these changes make sense to me. No blockers but a few notes.
Note: For reviews I tend to use this feedback ladder so there is no ambiguity about severity or importance -https://www.netlify.com/blog/2020/03/05/feedback-ladders-how-we-encode-code-reviews-at-netlify/
| /// Which kind of MLS conversation this is. `Dm` is a DirectV1 1:1 — no members | ||
| /// can be added; `Group` is an addable GroupV2 conversation. |
There was a problem hiding this comment.
[Dust] The Actual ConversationType being used will change overtime. Listing them explicitly will result in the docs becoming out of date quickly. Consider removing.
| #[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)] | ||
| pub enum ChatKind { | ||
| Dm, | ||
| Group, | ||
| } |
There was a problem hiding this comment.
[!] There was a previous "ConvoClass" structure but I'm realizing it never landed in generic_client. We should eventually think about exposing this information so it is available for all clients.
| self.add_system_message("/connect <address> - Connect using an address"); | ||
| self.add_system_message("/dm <address> - Start a direct (1:1) chat"); |
There was a problem hiding this comment.
[Sand] This PR is tightly coupled with #205 . Short PR's are great, however its hard to see how these changes will all land together. Particularly with some unrelated lines being deleted in this PR.
In the future I don't have any issue reviewing tightly coupled items together in a single PR. Especially if the commits are clean.
| // First token is the (optional) group name; any remaining tokens | ||
| // are addresses to invite at creation. `/new` alone makes an empty | ||
| // group. |
There was a problem hiding this comment.
[?] Is there a functional reason to not force developers to create groups with a defined name?
|
|
||
| **Direct message (1:1):** | ||
|
|
||
| 1. Alice types `/account` and sends Bob her address. |
There was a problem hiding this comment.
[!] There is a proposal to remove Alice and Bob from chat level documentation : https://github.com/logos-co/logos-lips/blob/master/docs/messaging/informational/raw/chat-cast.md -- Feedback welcome
No description provided.