mirror of
				https://github.com/cinnyapp/cinny.git
				synced 2025-11-04 14:30:29 +03:00 
			
		
		
		
	Fix matrix.to links opening in webview in cinny desktop (#1963)
This commit is contained in:
		
							parent
							
								
									21164a9b61
								
							
						
					
					
						commit
						6e191d3c79
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -14,6 +14,7 @@ export const useMentionClickHandler = (roomId: string): ReactEventHandler<HTMLEl
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const handleClick: ReactEventHandler<HTMLElement> = useCallback(
 | 
					  const handleClick: ReactEventHandler<HTMLElement> = useCallback(
 | 
				
			||||||
    (evt) => {
 | 
					    (evt) => {
 | 
				
			||||||
 | 
					      evt.stopPropagation();
 | 
				
			||||||
      evt.preventDefault();
 | 
					      evt.preventDefault();
 | 
				
			||||||
      const target = evt.currentTarget;
 | 
					      const target = evt.currentTarget;
 | 
				
			||||||
      const mentionId = target.getAttribute('data-mention-id');
 | 
					      const mentionId = target.getAttribute('data-mention-id');
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue