mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Reopen conversation on page reload
This commit is contained in:
		@@ -80,7 +80,7 @@ document.addEventListener("wsClosed", () => {
 | 
				
			|||||||
	// Close all the current conversations
 | 
						// Close all the current conversations
 | 
				
			||||||
	OpenConversations.forEach((v) => v.Close(false))
 | 
						OpenConversations.forEach((v) => v.Close(false))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	OpenConversations = new Map();
 | 
						OpenConversations.clear();
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -148,6 +148,7 @@ class CallWindow extends CustomEvents {
 | 
				
			|||||||
		this.rootEl.remove();
 | 
							this.rootEl.remove();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		// Leave the call
 | 
							// Leave the call
 | 
				
			||||||
 | 
							if(UserWebSocket.IsConnected)
 | 
				
			||||||
			await ws("calls/leave", {
 | 
								await ws("calls/leave", {
 | 
				
			||||||
				convID: this.conv.ID
 | 
									convID: this.conv.ID
 | 
				
			||||||
			})
 | 
								})
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user