mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-55060 - Calls: Add PushTypeCalls for calls-specific push notifications (#25405)
* add PushTypeCalls for calls-specific push notifications * remove PushTypeCalls; add PushSubType for backwards compatability * don't capitalize calls subtype --------- Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
parent
f27a2ca263
commit
759bb70b2f
@ -34,6 +34,13 @@ const (
|
||||
PushReceived = "Received by device"
|
||||
)
|
||||
|
||||
// PushSubType allows for passing additional message type information
|
||||
// to mobile clients in a backwards-compatible way
|
||||
type PushSubType string
|
||||
|
||||
// PushSubTypeCalls is used by the Calls plugin
|
||||
const PushSubTypeCalls PushSubType = "calls"
|
||||
|
||||
type PushNotificationAck struct {
|
||||
Id string `json:"id"`
|
||||
ClientReceivedAt int64 `json:"received_at"`
|
||||
@ -59,6 +66,7 @@ type PushNotification struct {
|
||||
RootId string `json:"root_id,omitempty"`
|
||||
ChannelName string `json:"channel_name,omitempty"`
|
||||
Type string `json:"type,omitempty"`
|
||||
SubType PushSubType `json:"sub_type,omitempty"`
|
||||
SenderId string `json:"sender_id,omitempty"`
|
||||
SenderName string `json:"sender_name,omitempty"`
|
||||
OverrideUsername string `json:"override_username,omitempty"`
|
||||
|
Loading…
Reference in New Issue
Block a user