-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
Conversation
imessage/bluebubbles/api.go
Outdated
@@ -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 { |
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.
This doesn't need to be a pointer, empty map has the same effect and maps can also be nil
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.
i'm so used to Rust haha thank you!
imessage/bluebubbles/interface.go
Outdated
GroupId string `json:"groupId"` | ||
GUID string `json:"guid"` | ||
ChatIdentifier string `json:"chatIdentifier"` | ||
GroupId string `json:"groupId,omitempty"` |
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.
This field was already there, but as a side note, ID
should be uppercase https://go.dev/wiki/CodeReviewComments#initialisms
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.