remove dirty hack used before we use the notify on PN

this was used to not trigger events when sending a control message
pull/1381/head
Audric Ackermann 5 years ago
parent 22b4f39e52
commit 465c9dfa77
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -1,17 +1,12 @@
import { DAYS, HOURS, MINUTES } from './utils/Number';
import { DAYS, MINUTES } from './utils/Number';
// tslint:disable: binary-expression-operand-order
/**
* FIXME The -1 hours is a hack to make the PN not trigger a Notification for those control message.
* Apple devices must show a Notification if a PN is received, and for those
* control message, there is nothing to display (yet).
*/
export const TTL_DEFAULT = {
PAIRING_REQUEST: 2 * MINUTES,
DEVICE_UNPAIRING: 4 * DAYS - 1 * HOURS,
SESSION_REQUEST: 4 * DAYS - 1 * HOURS,
SESSION_ESTABLISHED: 2 * DAYS - 1 * HOURS,
END_SESSION_MESSAGE: 4 * DAYS - 1 * HOURS,
DEVICE_UNPAIRING: 4 * DAYS,
SESSION_REQUEST: 4 * DAYS,
SESSION_ESTABLISHED: 2 * DAYS,
END_SESSION_MESSAGE: 4 * DAYS,
TYPING_MESSAGE: 1 * MINUTES,
ONLINE_BROADCAST: 1 * MINUTES,
REGULAR_MESSAGE: 2 * DAYS,

Loading…
Cancel
Save