mirror of https://github.com/procxx/kepka.git
				
				
				
			Fix document caption in media viewer.
Regression was introduced in 5cae57601a.
Fixes #5799, fixes #5802, fixes #5804.
			
			
This commit is contained in:
		
							parent
							
								
									dc3996c077
								
							
						
					
					
						commit
						8f9bed0443
					
				|  | @ -1661,7 +1661,7 @@ void OverlayWidget::showPhoto(not_null<PhotoData*> photo, not_null<PeerData*> co | ||||||
| 
 | 
 | ||||||
| 	refreshMediaViewer(); | 	refreshMediaViewer(); | ||||||
| 
 | 
 | ||||||
| 	displayPhoto(photo, 0); | 	displayPhoto(photo, nullptr); | ||||||
| 	preloadData(0); | 	preloadData(0); | ||||||
| 	activateControls(); | 	activateControls(); | ||||||
| } | } | ||||||
|  | @ -1763,9 +1763,7 @@ void OverlayWidget::displayDocument(DocumentData *doc, HistoryItem *item) { | ||||||
| 	_radial.stop(); | 	_radial.stop(); | ||||||
| 
 | 
 | ||||||
| 	refreshMediaViewer(); | 	refreshMediaViewer(); | ||||||
| 	if ((item ? item->fullId() : FullMsgId()) != _msgid) { | 	refreshCaption(item); | ||||||
| 		refreshCaption(item); |  | ||||||
| 	} |  | ||||||
| 	if (_doc) { | 	if (_doc) { | ||||||
| 		if (_doc->sticker()) { | 		if (_doc->sticker()) { | ||||||
| 			if (const auto image = _doc->getStickerLarge()) { | 			if (const auto image = _doc->getStickerLarge()) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue