mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fix crash on album parts being deleted.
This commit is contained in:
parent
999fa39d7c
commit
7a849b2899
1 changed files with 8 additions and 0 deletions
|
@ -573,6 +573,14 @@ HistoryWidget::HistoryWidget(
|
|||
updateHistoryGeometry();
|
||||
}
|
||||
}, 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(
|
||||
) | rpl::start_with_next([this](auto item) {
|
||||
if (const auto view = item->mainView()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue