mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-28 09:32:56 +00:00
Fix resuming audio on call end.
This commit is contained in:
parent
561d3e0670
commit
9a1069c1ae
@ -31,9 +31,6 @@ void ScheduleDetachFromDeviceSafe();
|
||||
void ScheduleDetachIfNotUsedSafe();
|
||||
void StopDetachIfNotUsedSafe();
|
||||
|
||||
template <typename Callback>
|
||||
void IterateSamples();
|
||||
|
||||
} // namespace Audio
|
||||
|
||||
namespace Player {
|
||||
|
@ -373,8 +373,8 @@ void Instance::resumeOnCall(AudioMsgId::Type type) {
|
||||
if (const auto data = getData(type)) {
|
||||
if (data->resumeOnCallEnd) {
|
||||
data->resumeOnCallEnd = false;
|
||||
play(type);
|
||||
}
|
||||
play(type);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user