mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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() {
|
void Widget::handleSongChange() {
|
||||||
const auto current = instance()->current(_type);
|
const auto current = instance()->current(_type);
|
||||||
const auto document = current.audio();
|
const auto document = current.audio();
|
||||||
_lastSongFromAnotherSession = (document->session().uniqueId()
|
|
||||||
!= _controller->session().uniqueId());
|
|
||||||
if (!current
|
if (!current
|
||||||
|| !document
|
|| !document
|
||||||
|| ((_lastSongId.audio() == document)
|
|| ((_lastSongId.audio() == document)
|
||||||
|
@ -679,6 +677,8 @@ void Widget::handleSongChange() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_lastSongId = current;
|
_lastSongId = current;
|
||||||
|
_lastSongFromAnotherSession = (document->session().uniqueId()
|
||||||
|
!= _controller->session().uniqueId());
|
||||||
|
|
||||||
auto textWithEntities = TextWithEntities();
|
auto textWithEntities = TextWithEntities();
|
||||||
if (document->isVoiceMessage() || document->isVideoMessage()) {
|
if (document->isVoiceMessage() || document->isVideoMessage()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue