mirror of https://github.com/procxx/kepka.git
Fix crash on album parts being deleted.
This commit is contained in:
parent
999fa39d7c
commit
7a849b2899
|
@ -573,6 +573,14 @@ HistoryWidget::HistoryWidget(
|
||||||
updateHistoryGeometry();
|
updateHistoryGeometry();
|
||||||
}
|
}
|
||||||
}, lifetime());
|
}, lifetime());
|
||||||
|
Auth().data().itemViewRefreshRequest(
|
||||||
|
) | rpl::start_with_next([this](auto item) {
|
||||||
|
// While HistoryInner doesn't own item views we must refresh them
|
||||||
|
// even if the list is not yet created / was destroyed.
|
||||||
|
if (!_list) {
|
||||||
|
item->refreshMainView();
|
||||||
|
}
|
||||||
|
}, lifetime());
|
||||||
Auth().data().animationPlayInlineRequest(
|
Auth().data().animationPlayInlineRequest(
|
||||||
) | rpl::start_with_next([this](auto item) {
|
) | rpl::start_with_next([this](auto item) {
|
||||||
if (const auto view = item->mainView()) {
|
if (const auto view = item->mainView()) {
|
||||||
|
|
Loading…
Reference in New Issue