mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Add property to window
This commit is contained in:
		@@ -17,7 +17,7 @@ class CallsController {
 | 
			
		||||
	 * @param {Conversation} conv Information about the target conversation
 | 
			
		||||
	 */
 | 
			
		||||
	static Open(conv) {
 | 
			
		||||
		if(OpenCalls.has(conv.ID) && OpenCalls.get(conv.ID).rootEl.isConnected)
 | 
			
		||||
		if(OpenCalls.has(conv.ID) && OpenCalls.get(conv.ID).isOpen)
 | 
			
		||||
			return;
 | 
			
		||||
		
 | 
			
		||||
		console.info("Open call for conversation " + conv.ID);
 | 
			
		||||
 
 | 
			
		||||
@@ -119,6 +119,15 @@ class CallWindow extends CustomEvents {
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Check if this conversation window is open or not
 | 
			
		||||
	 * 
 | 
			
		||||
	 * @returns {boolean}
 | 
			
		||||
	 */
 | 
			
		||||
	get isOpen() {
 | 
			
		||||
		return this.rootEl.isConnected
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	/**
 | 
			
		||||
	 * Make the call window draggable
 | 
			
		||||
	 */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user