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

Make general conversation to encompass group dms and groups. #1138

Merged
merged 13 commits into from
Oct 15, 2024

Conversation

nplasterer
Copy link
Contributor

@nplasterer nplasterer commented Oct 13, 2024

Closes #1130

Brings the language in the bindings more inline with conversation than group to make it easier to understand with groupDMs.

Adds a bunch of specific dm and group functionality to allow backwards compatibility for V2 migrations.

@nplasterer nplasterer self-assigned this Oct 13, 2024
Copy link

graphite-app bot commented Oct 13, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@@ -224,7 +225,7 @@ pub struct FindGroupParams {
pub created_after_ns: Option<i64>,
pub created_before_ns: Option<i64>,
pub limit: Option<i64>,
pub include_dm_groups: bool,
pub conversation_type: Option<ConversationType>,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed all these include_dm booleans to conversation_type so that we could have all 3 options
just dms, just groups, and both.

/// Consent is for a group
GroupId = 1,
/// Consent is for a conversation
ConversationId = 1,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since it is just a number under the hood this rename should have no effect on existing records.

@nplasterer nplasterer marked this pull request as ready for review October 15, 2024 05:12
@nplasterer nplasterer requested a review from a team as a code owner October 15, 2024 05:12
@insipx
Copy link
Contributor

insipx commented Oct 15, 2024

nice! Much prefer enums to booleans

@nplasterer nplasterer merged commit 39bf995 into main Oct 15, 2024
7 checks passed
@nplasterer nplasterer deleted the np/group-conversation-unification branch October 15, 2024 15:24
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.

Make clear distinctions between DMs & Groups with common Conversation
3 participants