mirror of https://github.com/procxx/kepka.git
				
				
				
			Hide Nobody option from profile photo privacy.
This commit is contained in:
		
							parent
							
								
									0b5500fe75
								
							
						
					
					
						commit
						8c6e72b21a
					
				| 
						 | 
				
			
			@ -722,6 +722,10 @@ QString ProfilePhotoPrivacyController::title() {
 | 
			
		|||
	return lang(lng_edit_privacy_profile_photo_title);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool ProfilePhotoPrivacyController::hasOption(Option option) {
 | 
			
		||||
	return (option != Option::Nobody);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
LangKey ProfilePhotoPrivacyController::optionsTitleKey() {
 | 
			
		||||
	return lng_edit_privacy_profile_photo_header;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -159,6 +159,7 @@ public:
 | 
			
		|||
	MTPInputPrivacyKey apiKey() override;
 | 
			
		||||
 | 
			
		||||
	QString title() override;
 | 
			
		||||
	bool hasOption(Option option) override;
 | 
			
		||||
	LangKey optionsTitleKey() override;
 | 
			
		||||
	LangKey exceptionButtonTextKey(Exception exception) override;
 | 
			
		||||
	QString exceptionBoxTitle(Exception exception) override;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue