mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
Fix caption disappearance on album sending.
This commit is contained in:
parent
ee680ac1f1
commit
26345208a9
1 changed files with 4 additions and 6 deletions
|
@ -1821,18 +1821,16 @@ rpl::producer<not_null<HistoryItem*>> Session::itemDataChanges() const {
|
|||
|
||||
void Session::requestItemTextRefresh(not_null<HistoryItem*> item) {
|
||||
const auto call = [&](not_null<HistoryItem*> item) {
|
||||
if (const auto i = _views.find(item); i != _views.end()) {
|
||||
for (const auto &view : i->second) {
|
||||
view->itemTextUpdated();
|
||||
}
|
||||
}
|
||||
enumerateItemViews(item, [&](not_null<ViewElement*> view) {
|
||||
view->itemTextUpdated();
|
||||
});
|
||||
requestItemResize(item);
|
||||
};
|
||||
if (const auto group = groups().find(item)) {
|
||||
call(group->items.front());
|
||||
} else {
|
||||
call(item);
|
||||
}
|
||||
requestItemResize(item);
|
||||
}
|
||||
|
||||
void Session::registerHighlightProcess(
|
||||
|
|
Loading…
Add table
Reference in a new issue