Fix story links opening viewer in the background.
This commit is contained in:
		
							parent
							
								
									de4152496f
								
							
						
					
					
						commit
						027e662478
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -412,6 +412,7 @@ bool ResolveUsernameOrPhone( | ||||||
| 	} | 	} | ||||||
| 	const auto myContext = context.value<ClickHandlerContext>(); | 	const auto myContext = context.value<ClickHandlerContext>(); | ||||||
| 	using Navigation = Window::SessionNavigation; | 	using Navigation = Window::SessionNavigation; | ||||||
|  | 	controller->window().activate(); | ||||||
| 	controller->showPeerByLink(Navigation::PeerByLinkInfo{ | 	controller->showPeerByLink(Navigation::PeerByLinkInfo{ | ||||||
| 		.usernameOrId = domain, | 		.usernameOrId = domain, | ||||||
| 		.phone = phone, | 		.phone = phone, | ||||||
|  | @ -447,7 +448,6 @@ bool ResolveUsernameOrPhone( | ||||||
| 			: std::nullopt), | 			: std::nullopt), | ||||||
| 		.clickFromMessageId = myContext.itemId, | 		.clickFromMessageId = myContext.itemId, | ||||||
| 	}); | 	}); | ||||||
| 	controller->window().activate(); |  | ||||||
| 	return true; | 	return true; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 John Preston
						John Preston