mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Update API scheme.
This commit is contained in:
@@ -205,14 +205,15 @@ void GroupCall::finish(FinishType type) {
|
||||
|| state == State::Failed) {
|
||||
return;
|
||||
}
|
||||
if (!joined()) {
|
||||
if (!_mySsrc) {
|
||||
setState(finalState);
|
||||
return;
|
||||
}
|
||||
|
||||
setState(hangupState);
|
||||
_api.request(MTPphone_LeaveGroupCall(
|
||||
inputCall()
|
||||
inputCall(),
|
||||
MTP_int(_mySsrc)
|
||||
)).done([=](const MTPUpdates &result) {
|
||||
// Here 'this' could be destroyed by updates, so we set Ended after
|
||||
// updates being handled, but in a guarded way.
|
||||
|
@@ -369,9 +369,9 @@ int GroupMembers::desiredHeight() const {
|
||||
}
|
||||
return 0;
|
||||
}();
|
||||
desired += qMax(count, _list->fullRowsCount())
|
||||
desired += std::max(count, _list->fullRowsCount())
|
||||
* st::groupCallMembersList.item.height;
|
||||
return qMax(height(), desired);
|
||||
return std::max(height(), desired);
|
||||
}
|
||||
|
||||
void GroupMembers::setupHeader(not_null<GroupCall*> call) {
|
||||
|
Reference in New Issue
Block a user