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

Add confirm for starting scheduled voice chat early.

This commit is contained in:
John Preston
2021-04-06 19:19:37 +04:00
parent 8c7217ad56
commit 27fc61c676
6 changed files with 37 additions and 3 deletions

View File

@@ -125,6 +125,9 @@ GroupCallBar::GroupCallBar(
_inner->update();
refreshScheduledProcess();
}, lifetime());
if (!_open && !_join) {
refreshScheduledProcess();
}
std::move(
copy
@@ -170,13 +173,14 @@ void GroupCallBar::refreshScheduledProcess() {
_scheduledProcess = nullptr;
_open = nullptr;
_openBrushForWidth = 0;
}
if (!_join) {
_join = std::make_unique<RoundButton>(
_inner.get(),
tr::lng_group_call_join(),
st::groupCallTopBarJoin);
setupRightButton(_join.get());
}
return;
} else if (!_scheduledProcess) {
_scheduledProcess = std::make_unique<GroupCallScheduledLeft>(date);
_join = nullptr;