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

GetChatInfo implementation #156

Merged
merged 5 commits into from
Jan 15, 2024
Merged

Conversation

cnuss
Copy link
Collaborator

@cnuss cnuss commented Jan 15, 2024

Adding GetChatInfo implementation.

The bridge starts up successfully, but I haven't checked to make sure the data that is in the struct is exactly what we expect.

@cnuss cnuss requested a review from tulir January 15, 2024 18:09
@@ -261,7 +261,7 @@ func (bb *blueBubbles) GetMessage(guid string) (resp *imessage.Message, err erro
return nil, ErrNotImplemented
}

func (bb *blueBubbles) apiUrl(path string) string {
func (bb *blueBubbles) apiUrl(path string, queryParams *map[string]string) string {
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't need to be a pointer, empty map has the same effect and maps can also be nil

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i'm so used to Rust haha thank you!

GroupId string `json:"groupId"`
GUID string `json:"guid"`
ChatIdentifier string `json:"chatIdentifier"`
GroupId string `json:"groupId,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

This field was already there, but as a side note, ID should be uppercase https://go.dev/wiki/CodeReviewComments#initialisms

@cnuss cnuss requested a review from tulir January 15, 2024 18:28
@cnuss cnuss merged commit 5c32495 into bluebubbles Jan 15, 2024
11 checks passed
@cnuss cnuss deleted the 143-bluebubbles-implement-getchatinfo branch January 15, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants