2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Move non-settings session data to Data::Session.

Rename AuthSessionData to AuthSessionSettings, move data away.
This commit is contained in:
John Preston
2018-01-04 13:22:53 +03:00
parent 724fe65d72
commit 6a9556d42c
51 changed files with 574 additions and 481 deletions

View File

@@ -60,7 +60,8 @@ void Instance::playSound(Sound sound) {
case Sound::Busy: {
if (!_callBusyTrack) {
_callBusyTrack = Media::Audio::Current().createTrack();
_callBusyTrack->fillFromFile(Auth().data().getSoundPath(qsl("call_busy")));
_callBusyTrack->fillFromFile(
Auth().settings().getSoundPath(qsl("call_busy")));
}
_callBusyTrack->playOnce();
} break;
@@ -68,7 +69,8 @@ void Instance::playSound(Sound sound) {
case Sound::Ended: {
if (!_callEndedTrack) {
_callEndedTrack = Media::Audio::Current().createTrack();
_callEndedTrack->fillFromFile(Auth().data().getSoundPath(qsl("call_end")));
_callEndedTrack->fillFromFile(
Auth().settings().getSoundPath(qsl("call_end")));
}
_callEndedTrack->playOnce();
} break;
@@ -76,7 +78,8 @@ void Instance::playSound(Sound sound) {
case Sound::Connecting: {
if (!_callConnectingTrack) {
_callConnectingTrack = Media::Audio::Current().createTrack();
_callConnectingTrack->fillFromFile(Auth().data().getSoundPath(qsl("call_connect")));
_callConnectingTrack->fillFromFile(
Auth().settings().getSoundPath(qsl("call_connect")));
}
_callConnectingTrack->playOnce();
} break;