Fix assertion violation in non-history song player.
This commit is contained in:
		
							parent
							
								
									20fbf0a655
								
							
						
					
					
						commit
						fb0ceb110e
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -234,7 +234,9 @@ void Panel::refreshList() { | |||
| 			: nullptr; | ||||
| 		const auto media = item ? item->media() : nullptr; | ||||
| 		const auto document = media ? media->document() : nullptr; | ||||
| 		if (!document || !document->isSharedMediaMusic()) { | ||||
| 		if (!document | ||||
| 			|| !document->isSharedMediaMusic() | ||||
| 			|| !IsServerMsgId(item->id)) { | ||||
| 			return nullptr; | ||||
| 		} | ||||
| 		const auto result = item->history()->peer; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 John Preston
						John Preston