mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
updating edited messages dependencies (replies, edit / reply / pinned bar), postponing notification about pinned message while the message itself is not yet available
This commit is contained in:
@@ -937,6 +937,7 @@ namespace App {
|
||||
if (App::main()) {
|
||||
App::main()->dlgUpdated(existing->history(), existing->id);
|
||||
}
|
||||
App::historyUpdateDependent(existing);
|
||||
Notify::historyItemResized(existing);
|
||||
}
|
||||
}
|
||||
@@ -1796,6 +1797,18 @@ namespace App {
|
||||
}
|
||||
}
|
||||
|
||||
void historyUpdateDependent(HistoryItem *item) {
|
||||
DependentItems::iterator j = ::dependentItems.find(item);
|
||||
if (j != ::dependentItems.cend()) {
|
||||
for (OrderedSet<HistoryItem*>::const_iterator k = j.value().cbegin(), e = j.value().cend(); k != e; ++k) {
|
||||
k.key()->updateDependencyItem();
|
||||
}
|
||||
}
|
||||
if (App::main()) {
|
||||
App::main()->itemEdited(item);
|
||||
}
|
||||
}
|
||||
|
||||
void historyClearMsgs() {
|
||||
::dependentItems.clear();
|
||||
|
||||
|
Reference in New Issue
Block a user