Prepares payload to be delivered to a mobile device as a push notification in response to owner deleting a channel.
(topicName string, now time.Time)
| 144 | |
| 145 | // Prepares payload to be delivered to a mobile device as a push notification in response to owner deleting a channel. |
| 146 | func pushForChanDelete(topicName string, now time.Time) *push.Receipt { |
| 147 | topicName = types.GrpToChn(topicName) |
| 148 | // Initialize the push receipt. |
| 149 | return &push.Receipt{ |
| 150 | Payload: push.Payload{ |
| 151 | What: push.ActSub, |
| 152 | Silent: true, |
| 153 | Topic: topicName, |
| 154 | Timestamp: now, |
| 155 | ModeWant: types.ModeNone, |
| 156 | ModeGiven: types.ModeNone, |
| 157 | }, |
| 158 | Channel: topicName, |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | // Prepares payload to be delivered to a mobile device as a push notification in response to receiving "read" notification. |
| 163 | func (t *Topic) pushForReadRcpt(uid types.Uid, seq int, now time.Time) *push.Receipt { |
no test coverage detected
searching dependent graphs…