Skip to content
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

Merged
merged 7 commits into from
Jan 29, 2025

Conversation

cameronvoell
Copy link
Contributor

adds find_or_create_dm_by_inbox_id

update bindings to use find_or_create_dm_by_inbox_id

@cameronvoell cameronvoell marked this pull request as ready for review January 29, 2025 01:46
@cameronvoell cameronvoell requested a review from a team as a code owner January 29, 2025 01:46
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@cameronvoell cameronvoell requested a review from rygine January 29, 2025 01:46
@@ -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> {
Copy link
Contributor Author

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(
Copy link
Contributor Author

@cameronvoell cameronvoell Jan 29, 2025

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

rygine
rygine previously approved these changes Jan 29, 2025
@cameronvoell cameronvoell force-pushed the cv/01-28-adds_find_or_create_dm_by_inbox_id branch from e1a54bd to 4c1a90a Compare January 29, 2025 05:21
@cameronvoell cameronvoell requested a review from rygine January 29, 2025 19:59
@cameronvoell cameronvoell enabled auto-merge (squash) January 29, 2025 20:06
@cameronvoell cameronvoell merged commit 8722499 into main Jan 29, 2025
17 checks passed
@cameronvoell cameronvoell deleted the cv/01-28-adds_find_or_create_dm_by_inbox_id branch January 29, 2025 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants