Don't add original name in forward of reply.
This commit is contained in:
		
							parent
							
								
									382dab4ecb
								
							
						
					
					
						commit
						c8dd94601b
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -430,8 +430,9 @@ void Reply::updateName(
 | 
			
		|||
	const auto originalNameAdded = !displayAsExternal
 | 
			
		||||
		&& forwarded
 | 
			
		||||
		&& !message->isDiscussionPost()
 | 
			
		||||
		&& (!message->showForwardsFromSender(forwarded)
 | 
			
		||||
			|| forwarded->forwardOfForward());
 | 
			
		||||
		&& (forwarded->forwardOfForward()
 | 
			
		||||
			|| (!message->showForwardsFromSender(forwarded)
 | 
			
		||||
				&& !view->data()->Has<HistoryMessageForwarded>()));
 | 
			
		||||
	const auto shorten = !viaBotUsername.isEmpty()
 | 
			
		||||
		|| groupNameAdded
 | 
			
		||||
		|| originalNameAdded;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue