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

Show correct tooltip on stopping recording.

This commit is contained in:
John Preston
2021-03-10 18:46:02 +04:00
parent 8ba77defeb
commit a8a85b2acf
4 changed files with 12 additions and 0 deletions

View File

@@ -903,6 +903,9 @@ void GroupCall::toggleRecording(bool enabled, const QString &title) {
return;
}
if (!enabled) {
_recordingStoppedByMe = true;
}
using Flag = MTPphone_ToggleGroupCallRecord::Flag;
_api.request(MTPphone_ToggleGroupCallRecord(
MTP_flags((enabled ? Flag::f_start : Flag(0))
@@ -911,7 +914,9 @@ void GroupCall::toggleRecording(bool enabled, const QString &title) {
MTP_string(title)
)).done([=](const MTPUpdates &result) {
_peer->session().api().applyUpdates(result);
_recordingStoppedByMe = false;
}).fail([=](const RPCError &error) {
_recordingStoppedByMe = false;
}).send();
}