parent
							
								
									e8ad836ad2
								
							
						
					
					
						commit
						ada190049f
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -668,7 +668,7 @@ void Notification::actionsOpacityCallback() { | ||||||
| void Notification::updateNotifyDisplay() { | void Notification::updateNotifyDisplay() { | ||||||
| 	if (!_history || !_peer || (!_item && _forwardedCount < 2)) return; | 	if (!_history || !_peer || (!_item && _forwardedCount < 2)) return; | ||||||
| 
 | 
 | ||||||
| 	auto options = Manager::getNotificationOptions(_item); | 	const auto options = Manager::getNotificationOptions(_item); | ||||||
| 	_hideReplyButton = options.hideReplyButton; | 	_hideReplyButton = options.hideReplyButton; | ||||||
| 
 | 
 | ||||||
| 	int32 w = width(), h = height(); | 	int32 w = width(), h = height(); | ||||||
|  | @ -686,12 +686,14 @@ void Notification::updateNotifyDisplay() { | ||||||
| 		if (!options.hideNameAndPhoto) { | 		if (!options.hideNameAndPhoto) { | ||||||
| 			if (_fromScheduled && _history->peer->isSelf()) { | 			if (_fromScheduled && _history->peer->isSelf()) { | ||||||
| 				Ui::EmptyUserpic::PaintSavedMessages(p, st::notifyPhotoPos.x(), st::notifyPhotoPos.y(), width(), st::notifyPhotoSize); | 				Ui::EmptyUserpic::PaintSavedMessages(p, st::notifyPhotoPos.x(), st::notifyPhotoPos.y(), width(), st::notifyPhotoSize); | ||||||
|  | 				_userpicLoaded = true; | ||||||
| 			} else { | 			} else { | ||||||
| 				_history->peer->loadUserpic(); | 				_history->peer->loadUserpic(); | ||||||
| 				_history->peer->paintUserpicLeft(p, st::notifyPhotoPos.x(), st::notifyPhotoPos.y(), width(), st::notifyPhotoSize); | 				_history->peer->paintUserpicLeft(p, st::notifyPhotoPos.x(), st::notifyPhotoPos.y(), width(), st::notifyPhotoSize); | ||||||
| 			} | 			} | ||||||
| 		} else { | 		} else { | ||||||
| 			p.drawPixmap(st::notifyPhotoPos.x(), st::notifyPhotoPos.y(), manager()->hiddenUserpicPlaceholder()); | 			p.drawPixmap(st::notifyPhotoPos.x(), st::notifyPhotoPos.y(), manager()->hiddenUserpicPlaceholder()); | ||||||
|  | 			_userpicLoaded = true; | ||||||
| 		} | 		} | ||||||
| 
 | 
 | ||||||
| 		int32 itemWidth = w - st::notifyPhotoPos.x() - st::notifyPhotoSize - st::notifyTextLeft - st::notifyClosePos.x() - st::notifyClose.width; | 		int32 itemWidth = w - st::notifyPhotoPos.x() - st::notifyPhotoSize - st::notifyTextLeft - st::notifyClosePos.x() - st::notifyClose.width; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 John Preston
						John Preston