-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adds find_or_create_dm_by_inbox_id #1564
adds find_or_create_dm_by_inbox_id #1564
Conversation
@@ -272,10 +272,10 @@ impl Conversations { | |||
} | |||
|
|||
#[wasm_bindgen(js_name = createDm)] | |||
pub async fn create_dm(&self, account_address: String) -> Result<Conversation, JsError> { | |||
pub async fn find_or_create_dm(&self, account_address: String) -> Result<Conversation, JsError> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rygine I thought updating the name in bindings for clarity would be helpful. let me know if there's any concerns
|
||
/// Create a new Direct Message with the default settings | ||
pub async fn create_dm_by_inbox_id( | ||
async fn create_dm_by_inbox_id( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing public visibility, since we never really want to be creating a dm when another exists already
e1a54bd
to
4c1a90a
Compare
adds find_or_create_dm_by_inbox_id
update bindings to use find_or_create_dm_by_inbox_id