2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Refactored counting idle time.

- psIdleTime() was replaced with Platform::LastUserInputTime().
 - _lastTimeVideoPlayedAt was moved to Application as _lastNonIdleTime.
 - Call of updateNonIdle() was added while voice is recording.
 - Fixed #5695.
 - Thanks Preston. =)
This commit is contained in:
23rd
2019-03-09 20:10:51 +03:00
committed by John Preston
parent 9dc9e019f6
commit 78d00bcf22
13 changed files with 41 additions and 33 deletions

View File

@@ -1241,6 +1241,7 @@ void HistoryWidget::onRecordUpdate(quint16 level, qint32 samples) {
if (samples < 0 || samples >= Media::Player::kDefaultFrequency * AudioVoiceMsgMaxLength) {
stopRecording(_peer && samples > 0 && _inField);
}
Core::App().updateNonIdle();
updateField();
if (_history) {
updateSendAction(_history, SendAction::Type::RecordVoice);