2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +00:00

Don't destroy by timer single-view media.

This commit is contained in:
John Preston
2023-08-29 14:29:59 +04:00
parent 36f1a18b3b
commit c3340fd016
4 changed files with 41 additions and 18 deletions

View File

@@ -2619,7 +2619,7 @@ void Session::checkSelfDestructItems() {
auto nextDestructIn = crl::time(0);
for (auto i = _selfDestructItems.begin(); i != _selfDestructItems.cend();) {
if (const auto item = message(*i)) {
if (auto destructIn = item->getSelfDestructIn(now)) {
if (const auto destructIn = item->getSelfDestructIn(now)) {
if (nextDestructIn > 0) {
accumulate_min(nextDestructIn, destructIn);
} else {