2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Fix crash in account switching.

This commit is contained in:
John Preston
2021-06-11 19:11:58 +04:00
parent a0c2318919
commit 64a6838764

View File

@@ -883,6 +883,7 @@ void MainWidget::handleAudioUpdate(const Media::Player::TrackState &state) {
if (const auto item = session().data().message(state.id.contextId())) {
session().data().requestItemRepaint(item);
}
if (document) {
if (const auto items = InlineBots::Layout::documentItems()) {
if (const auto i = items->find(document); i != items->end()) {
for (const auto item : i->second) {
@@ -891,6 +892,7 @@ void MainWidget::handleAudioUpdate(const Media::Player::TrackState &state) {
}
}
}
}
void MainWidget::closeBothPlayers() {
if (_player) {