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>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f27a2ca263
Коммит
759bb70b2f
@@ -34,6 +34,13 @@ const (
|
|||||||
PushReceived = "Received by device"
|
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 {
|
type PushNotificationAck struct {
|
||||||
Id string `json:"id"`
|
Id string `json:"id"`
|
||||||
ClientReceivedAt int64 `json:"received_at"`
|
ClientReceivedAt int64 `json:"received_at"`
|
||||||
@@ -59,6 +66,7 @@ type PushNotification struct {
|
|||||||
RootId string `json:"root_id,omitempty"`
|
RootId string `json:"root_id,omitempty"`
|
||||||
ChannelName string `json:"channel_name,omitempty"`
|
ChannelName string `json:"channel_name,omitempty"`
|
||||||
Type string `json:"type,omitempty"`
|
Type string `json:"type,omitempty"`
|
||||||
|
SubType PushSubType `json:"sub_type,omitempty"`
|
||||||
SenderId string `json:"sender_id,omitempty"`
|
SenderId string `json:"sender_id,omitempty"`
|
||||||
SenderName string `json:"sender_name,omitempty"`
|
SenderName string `json:"sender_name,omitempty"`
|
||||||
OverrideUsername string `json:"override_username,omitempty"`
|
OverrideUsername string `json:"override_username,omitempty"`
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user