2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Moved type of call id to alias.

This commit is contained in:
23rd
2021-10-25 00:33:53 +03:00
committed by John Preston
parent 08939ac51d
commit 70e9b4a332
11 changed files with 32 additions and 31 deletions

View File

@@ -871,12 +871,12 @@ void Session::unregisterGroupCall(not_null<GroupCall*> call) {
_groupCalls.remove(call->id());
}
GroupCall *Session::groupCall(uint64 callId) const {
GroupCall *Session::groupCall(CallId callId) const {
const auto i = _groupCalls.find(callId);
return (i != end(_groupCalls)) ? i->second.get() : nullptr;
}
auto Session::invitedToCallUsers(uint64 callId) const
auto Session::invitedToCallUsers(CallId callId) const
-> const base::flat_set<not_null<UserData*>> & {
static const base::flat_set<not_null<UserData*>> kEmpty;
const auto i = _invitedToCallUsers.find(callId);
@@ -884,7 +884,7 @@ auto Session::invitedToCallUsers(uint64 callId) const
}
void Session::registerInvitedToCallUser(
uint64 callId,
CallId callId,
not_null<PeerData*> peer,
not_null<UserData*> user) {
const auto call = peer->groupCall();
@@ -902,7 +902,7 @@ void Session::registerInvitedToCallUser(
}
void Session::unregisterInvitedToCallUser(
uint64 callId,
CallId callId,
not_null<UserData*> user) {
const auto i = _invitedToCallUsers.find(callId);
if (i != _invitedToCallUsers.end()) {