Added ability to start outgoing call without user confirmation.

This commit is contained in:
23rd
2026-01-26 14:37:42 +03:00
parent b97322c198
commit 5146c05ec3
9 changed files with 31 additions and 17 deletions
+10 -2
View File
@@ -55,6 +55,11 @@ struct DhConfig;
struct InviteRequest;
struct StartConferenceInfo;
struct StartOutgoingCallArgs {
bool video = false;
bool isConfirmed = false;
};
struct StartGroupCallArgs {
enum class JoinConfirm {
None,
@@ -80,7 +85,7 @@ public:
Instance();
~Instance();
void startOutgoingCall(not_null<UserData*> user, bool video);
void startOutgoingCall(not_null<UserData*> user, StartOutgoingCallArgs);
void startOrJoinGroupCall(
std::shared_ptr<Ui::Show> show,
not_null<PeerData*> peer,
@@ -159,7 +164,10 @@ private:
not_null<Media::Audio::Track*> ensureSoundLoaded(const QString &key);
void playSoundOnce(const QString &key);
void createCall(not_null<UserData*> user, CallType type, bool isVideo);
void createCall(
not_null<UserData*> user,
CallType type,
StartOutgoingCallArgs);
void destroyCall(not_null<Call*> call);
void finishConferenceInvitations(const StartConferenceInfo &args);