From 465c9dfa774f4e003b9ec7aa6269b10523b50ee0 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Wed, 25 Nov 2020 13:25:59 +1100 Subject: [PATCH] remove dirty hack used before we use the notify on PN this was used to not trigger events when sending a control message --- ts/session/constants.ts | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/ts/session/constants.ts b/ts/session/constants.ts index a80fb08c8..e1a1d3835 100644 --- a/ts/session/constants.ts +++ b/ts/session/constants.ts @@ -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,