mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix crash in video messages playback.
Regression was introduced in ad3e447f08
.
This commit is contained in:
parent
ed342eea64
commit
9252be5e8c
1 changed files with 2 additions and 2 deletions
|
@ -670,8 +670,6 @@ void Widget::updateTimeLabel() {
|
|||
void Widget::handleSongChange() {
|
||||
const auto current = instance()->current(_type);
|
||||
const auto document = current.audio();
|
||||
_lastSongFromAnotherSession = (document->session().uniqueId()
|
||||
!= _controller->session().uniqueId());
|
||||
if (!current
|
||||
|| !document
|
||||
|| ((_lastSongId.audio() == document)
|
||||
|
@ -679,6 +677,8 @@ void Widget::handleSongChange() {
|
|||
return;
|
||||
}
|
||||
_lastSongId = current;
|
||||
_lastSongFromAnotherSession = (document->session().uniqueId()
|
||||
!= _controller->session().uniqueId());
|
||||
|
||||
auto textWithEntities = TextWithEntities();
|
||||
if (document->isVoiceMessage() || document->isVideoMessage()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue