Skip to content

Commit

Permalink
fix(fcm): Change DirectBootOK per Go initialisms (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
lahirumaramba authored Oct 22, 2024
1 parent bbd5162 commit 05e575d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion messaging/messaging.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ type AndroidConfig struct {
Data map[string]string `json:"data,omitempty"` // if specified, overrides the Data field on Message type
Notification *AndroidNotification `json:"notification,omitempty"`
FCMOptions *AndroidFCMOptions `json:"fcm_options,omitempty"`
DirectBootOk bool `json:"direct_boot_ok,omitempty"`
DirectBootOK bool `json:"direct_boot_ok,omitempty"`
}

// MarshalJSON marshals an AndroidConfig into JSON (for internal use only).
Expand Down
2 changes: 1 addition & 1 deletion messaging/messaging_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ var validMessages = []struct {
name: "AndroidDataMessage",
req: &Message{
Android: &AndroidConfig{
DirectBootOk: true,
DirectBootOK: true,
CollapseKey: "ck",
Data: map[string]string{
"k1": "v1",
Expand Down

0 comments on commit 05e575d

Please sign in to comment.