mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix build on Xcode.
This commit is contained in:
parent
707d090802
commit
ce5739048a
5 changed files with 10 additions and 11 deletions
|
@ -252,7 +252,7 @@ void GroupCall::start() {
|
||||||
hangup();
|
hangup();
|
||||||
if (error.type() == u"GROUPCALL_ANONYMOUS_FORBIDDEN"_q) {
|
if (error.type() == u"GROUPCALL_ANONYMOUS_FORBIDDEN"_q) {
|
||||||
Ui::ShowMultilineToast({
|
Ui::ShowMultilineToast({
|
||||||
.text = tr::lng_group_call_no_anonymous(tr::now),
|
.text = { tr::lng_group_call_no_anonymous(tr::now) },
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}).send();
|
}).send();
|
||||||
|
@ -368,13 +368,13 @@ void GroupCall::rejoin() {
|
||||||
|
|
||||||
hangup();
|
hangup();
|
||||||
Ui::ShowMultilineToast({
|
Ui::ShowMultilineToast({
|
||||||
.text = (type == u"GROUPCALL_ANONYMOUS_FORBIDDEN"_q
|
.text = { type == u"GROUPCALL_ANONYMOUS_FORBIDDEN"_q
|
||||||
? tr::lng_group_call_no_anonymous(tr::now)
|
? tr::lng_group_call_no_anonymous(tr::now)
|
||||||
: type == u"GROUPCALL_PARTICIPANTS_TOO_MUCH"_q
|
: type == u"GROUPCALL_PARTICIPANTS_TOO_MUCH"_q
|
||||||
? tr::lng_group_call_too_many(tr::now)
|
? tr::lng_group_call_too_many(tr::now)
|
||||||
: type == u"GROUPCALL_FORBIDDEN"_q
|
: type == u"GROUPCALL_FORBIDDEN"_q
|
||||||
? tr::lng_group_not_accessible(tr::now)
|
? tr::lng_group_not_accessible(tr::now)
|
||||||
: Lang::Hard::ServerError()),
|
: Lang::Hard::ServerError() },
|
||||||
});
|
});
|
||||||
}).send();
|
}).send();
|
||||||
});
|
});
|
||||||
|
|
|
@ -110,9 +110,9 @@ void PeerClickHandler::onClick(ClickContext context) const {
|
||||||
&& (!currentPeer->isChannel()
|
&& (!currentPeer->isChannel()
|
||||||
|| currentPeer->asChannel()->linkedChat() != clickedChannel)) {
|
|| currentPeer->asChannel()->linkedChat() != clickedChannel)) {
|
||||||
Ui::ShowMultilineToast({
|
Ui::ShowMultilineToast({
|
||||||
.text = (_peer->isMegagroup()
|
.text = { _peer->isMegagroup()
|
||||||
? tr::lng_group_not_accessible(tr::now)
|
? tr::lng_group_not_accessible(tr::now)
|
||||||
: tr::lng_channel_not_accessible(tr::now)),
|
: tr::lng_channel_not_accessible(tr::now) },
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
window->showPeerHistory(
|
window->showPeerHistory(
|
||||||
|
|
|
@ -2487,9 +2487,9 @@ void HistoryWidget::messagesFailed(const RPCError &error, int requestId) {
|
||||||
auto was = _peer;
|
auto was = _peer;
|
||||||
controller()->showBackFromStack();
|
controller()->showBackFromStack();
|
||||||
Ui::ShowMultilineToast({
|
Ui::ShowMultilineToast({
|
||||||
.text = ((was && was->isMegagroup())
|
.text = { (was && was->isMegagroup())
|
||||||
? tr::lng_group_not_accessible(tr::now)
|
? tr::lng_group_not_accessible(tr::now)
|
||||||
: tr::lng_channel_not_accessible(tr::now)),
|
: tr::lng_channel_not_accessible(tr::now) },
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -5594,8 +5594,8 @@ void HistoryWidget::setupGroupCallTracker() {
|
||||||
const auto channel = peer->asChannel();
|
const auto channel = peer->asChannel();
|
||||||
if (channel && channel->amAnonymous()) {
|
if (channel && channel->amAnonymous()) {
|
||||||
Ui::ShowMultilineToast({
|
Ui::ShowMultilineToast({
|
||||||
.text = tr::lng_group_call_no_anonymous(tr::now),
|
.text = { tr::lng_group_call_no_anonymous(tr::now) },
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
} else if (peer->groupCall()) {
|
} else if (peer->groupCall()) {
|
||||||
controller()->startOrJoinGroupCall(peer);
|
controller()->startOrJoinGroupCall(peer);
|
||||||
|
|
|
@ -48,7 +48,6 @@ private:
|
||||||
const TimeId _destroyAt = 0;
|
const TimeId _destroyAt = 0;
|
||||||
const Fn<void()> _destroyByTimerCallback;
|
const Fn<void()> _destroyByTimerCallback;
|
||||||
const crl::time _startedAt = 0;
|
const crl::time _startedAt = 0;
|
||||||
crl::time _lastCheckAt = 0;
|
|
||||||
base::Timer _refreshTimer;
|
base::Timer _refreshTimer;
|
||||||
|
|
||||||
Text::String _text;
|
Text::String _text;
|
||||||
|
|
|
@ -940,7 +940,7 @@ void SessionController::startOrJoinGroupCall(
|
||||||
const auto channel = peer->asChannel();
|
const auto channel = peer->asChannel();
|
||||||
if (channel && channel->amAnonymous()) {
|
if (channel && channel->amAnonymous()) {
|
||||||
Ui::ShowMultilineToast({
|
Ui::ShowMultilineToast({
|
||||||
.text = tr::lng_group_call_no_anonymous(tr::now),
|
.text = { tr::lng_group_call_no_anonymous(tr::now) },
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue