Skip to content

Commit 0c3c9d9

Browse files
committed
updated json tag for ChannelID field in AndroidConfig.Notification
1 parent 570427a commit 0c3c9d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

messaging/messaging.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ type AndroidNotification struct {
177177
BodyLocArgs []string `json:"body_loc_args,omitempty"`
178178
TitleLocKey string `json:"title_loc_key,omitempty"`
179179
TitleLocArgs []string `json:"title_loc_args,omitempty"`
180-
ChannelID string `json:"channel_id,omitempty"`
180+
ChannelID string `json:"channelId,omitempty"`
181181
ImageURL string `json:"image,omitempty"`
182182
Ticker string `json:"ticker,omitempty"`
183183
Sticky bool `json:"sticky,omitempty"`

messaging/messaging_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ var validMessages = []struct {
224224
"title_loc_args": []interface{}{"t1", "t2"},
225225
"body_loc_key": "blk",
226226
"body_loc_args": []interface{}{"b1", "b2"},
227-
"channel_id": "channel",
227+
"channelId": "channel",
228228
"image": "http://image.jpg",
229229
"ticker": "tkr",
230230
"sticky": true,

0 commit comments

Comments
 (0)