Fix possible crash in case of API error.
This commit is contained in:
		
							parent
							
								
									14a2b10989
								
							
						
					
					
						commit
						03147a5426
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -2138,7 +2138,7 @@ void InnerWidget::peerSearchReceived(
 | 
			
		|||
		} else {
 | 
			
		||||
			LOG(("API Error: "
 | 
			
		||||
				"user %1 was not loaded in InnerWidget::peopleReceived()"
 | 
			
		||||
				).arg(peer->id.value));
 | 
			
		||||
				).arg(peerFromMTP(mtpPeer).value));
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	for (const auto &mtpPeer : result) {
 | 
			
		||||
| 
						 | 
				
			
			@ -2153,7 +2153,7 @@ void InnerWidget::peerSearchReceived(
 | 
			
		|||
		} else {
 | 
			
		||||
			LOG(("API Error: "
 | 
			
		||||
				"user %1 was not loaded in InnerWidget::peopleReceived()"
 | 
			
		||||
				).arg(peer->id.value));
 | 
			
		||||
				).arg(peerFromMTP(mtpPeer).value));
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	refresh();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue