mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 15:05:56 +00:00
Fix notifications hiding on Linux.
Regression was introduced in 3372dfcd3e
.
Only when platform-specific code can give us the global time of the
last user input event we rely on idle time for notifications hiding.
Fixes #5791.
This commit is contained in:
@@ -860,7 +860,9 @@ void Application::updateNonIdle() {
|
||||
}
|
||||
|
||||
crl::time Application::lastNonIdleTime() const {
|
||||
return std::max(Platform::LastUserInputTime(), _lastNonIdleTime);
|
||||
return std::max(
|
||||
Platform::LastUserInputTime().value_or(0),
|
||||
_lastNonIdleTime);
|
||||
}
|
||||
|
||||
rpl::producer<bool> Application::passcodeLockChanges() const {
|
||||
|
Reference in New Issue
Block a user