You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			19 lines
		
	
	
		
			678 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			19 lines
		
	
	
		
			678 B
		
	
	
	
		
			TypeScript
		
	
import { DAYS, HOURS, 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,
 | 
						|
  TYPING_MESSAGE: 1 * MINUTES,
 | 
						|
  ONLINE_BROADCAST: 1 * MINUTES,
 | 
						|
  REGULAR_MESSAGE: 2 * DAYS,
 | 
						|
};
 |