mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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) {
|
void Session::requestItemTextRefresh(not_null<HistoryItem*> item) {
|
||||||
const auto call = [&](not_null<HistoryItem*> item) {
|
const auto call = [&](not_null<HistoryItem*> item) {
|
||||||
if (const auto i = _views.find(item); i != _views.end()) {
|
enumerateItemViews(item, [&](not_null<ViewElement*> view) {
|
||||||
for (const auto &view : i->second) {
|
view->itemTextUpdated();
|
||||||
view->itemTextUpdated();
|
});
|
||||||
}
|
requestItemResize(item);
|
||||||
}
|
|
||||||
};
|
};
|
||||||
if (const auto group = groups().find(item)) {
|
if (const auto group = groups().find(item)) {
|
||||||
call(group->items.front());
|
call(group->items.front());
|
||||||
} else {
|
} else {
|
||||||
call(item);
|
call(item);
|
||||||
}
|
}
|
||||||
requestItemResize(item);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Session::registerHighlightProcess(
|
void Session::registerHighlightProcess(
|
||||||
|
|
Loading…
Add table
Reference in a new issue