mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Improved fix of crash in video messages playback.
Regression was introduced in ad3e447f08
.
This commit is contained in:
parent
94e7aabea5
commit
0f94419f6d
1 changed files with 3 additions and 2 deletions
|
@ -670,6 +670,9 @@ void Widget::updateTimeLabel() {
|
|||
void Widget::handleSongChange() {
|
||||
const auto current = instance()->current(_type);
|
||||
const auto document = current.audio();
|
||||
_lastSongFromAnotherSession = document
|
||||
&& (document->session().uniqueId()
|
||||
!= _controller->session().uniqueId());
|
||||
if (!current
|
||||
|| !document
|
||||
|| ((_lastSongId.audio() == document)
|
||||
|
@ -677,8 +680,6 @@ 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