mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Improve sticker file reference refreshing.
This commit is contained in:
@@ -2505,9 +2505,11 @@ void ApiWrap::refreshFileReference(
|
||||
if (additional) {
|
||||
const auto i = _fileReferenceHandlers.find(origin);
|
||||
Assert(i != end(_fileReferenceHandlers));
|
||||
i->second.push_back([=](auto&&) {
|
||||
additional();
|
||||
});
|
||||
if (i->second.size() == 1) {
|
||||
i->second.push_back([=](auto&&) {
|
||||
additional();
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
const auto fail = [&] {
|
||||
|
Reference in New Issue
Block a user