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.
		
		
		
		
		
			
		
			
				
	
	
		
			25 lines
		
	
	
		
			624 B
		
	
	
	
		
			JavaScript
		
	
			
		
		
	
	
			25 lines
		
	
	
		
			624 B
		
	
	
	
		
			JavaScript
		
	
/* global window */
 | 
						|
 | 
						|
// eslint-disable-next-line func-names
 | 
						|
(function() {
 | 
						|
  // Possible conversation friend states
 | 
						|
  const friendRequestStatusEnum = Object.freeze({
 | 
						|
    // New conversation, no messages sent or received
 | 
						|
    none: 0,
 | 
						|
    // This state is used to lock the input early while sending
 | 
						|
    pendingSend: 1,
 | 
						|
    // Friend request sent, awaiting response
 | 
						|
    requestSent: 2,
 | 
						|
    // Friend request received, awaiting user input
 | 
						|
    requestReceived: 3,
 | 
						|
    // We did it!
 | 
						|
    friends: 4,
 | 
						|
    // Friend Request sent but timed out
 | 
						|
    requestExpired: 5,
 | 
						|
  });
 | 
						|
 | 
						|
  window.friends = {
 | 
						|
    friendRequestStatusEnum,
 | 
						|
  };
 | 
						|
})();
 |