mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fix crash in account switching.
This commit is contained in:
@@ -883,10 +883,12 @@ void MainWidget::handleAudioUpdate(const Media::Player::TrackState &state) {
|
||||
if (const auto item = session().data().message(state.id.contextId())) {
|
||||
session().data().requestItemRepaint(item);
|
||||
}
|
||||
if (const auto items = InlineBots::Layout::documentItems()) {
|
||||
if (const auto i = items->find(document); i != items->end()) {
|
||||
for (const auto item : i->second) {
|
||||
item->update();
|
||||
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) {
|
||||
item->update();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user