mattermost-mobile/app/constants/push_notification.ts
Christopher Poile 6fb5d85798
MM-55036 - Calls: Fix: Receiving in-app notifications for calls notifications while active (#7623)
* when active, do not show overlay if this is a calls-started notification

* add calls notification type; keep message test for backwards compat

* process calls notifications properly

* revert NOTIFICATION_TYPE.CALLS; use sub_type for backwards compatibility

* add ticket and comment for future refactoring of isCallsStartedMessage
2023-11-16 09:28:29 -05:00

22 lines
441 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
export const CATEGORY = 'CAN_REPLY';
export const REPLY_ACTION = 'REPLY_ACTION';
export const NOTIFICATION_TYPE = {
CLEAR: 'clear',
MESSAGE: 'message',
SESSION: 'session',
};
export const NOTIFICATION_SUB_TYPE = {
CALLS: 'calls',
};
export default {
CATEGORY,
NOTIFICATION_TYPE,
REPLY_ACTION,
};