If the pull request #28 is merged, collapse_key of notification can be nil.
When it is nil, data = notification.data.merge({:collapse_key => notification.collapse_key}) will not be executed, and data will become nil.
Then, the next step of data = data.merge({ ... makes an error, because data is nil.
So, I modified it so that data is initialized by notification.data always.
If the pull request #28 is merged,
collapse_key
ofnotification
can be nil.When it is nil,
data = notification.data.merge({:collapse_key => notification.collapse_key})
will not be executed, anddata
will become nil. Then, the next step ofdata = data.merge({ ...
makes an error, becausedata
is nil.So, I modified it so that
data
is initialized bynotification.data
always.