mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +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();
|
||||
if (error.type() == u"GROUPCALL_ANONYMOUS_FORBIDDEN"_q) {
|
||||
Ui::ShowMultilineToast({
|
||||
.text = tr::lng_group_call_no_anonymous(tr::now),
|
||||
.text = { tr::lng_group_call_no_anonymous(tr::now) },
|
||||
});
|
||||
}
|
||||
}).send();
|
||||
|
@ -368,13 +368,13 @@ void GroupCall::rejoin() {
|
|||
|
||||
hangup();
|
||||
Ui::ShowMultilineToast({
|
||||
.text = (type == u"GROUPCALL_ANONYMOUS_FORBIDDEN"_q
|
||||
.text = { type == u"GROUPCALL_ANONYMOUS_FORBIDDEN"_q
|
||||
? tr::lng_group_call_no_anonymous(tr::now)
|
||||
: type == u"GROUPCALL_PARTICIPANTS_TOO_MUCH"_q
|
||||
? tr::lng_group_call_too_many(tr::now)
|
||||
: type == u"GROUPCALL_FORBIDDEN"_q
|
||||
? tr::lng_group_not_accessible(tr::now)
|
||||
: Lang::Hard::ServerError()),
|
||||
: Lang::Hard::ServerError() },
|
||||
});
|
||||
}).send();
|
||||
});
|
||||
|
|
|
@ -110,9 +110,9 @@ void PeerClickHandler::onClick(ClickContext context) const {
|
|||
&& (!currentPeer->isChannel()
|
||||
|| currentPeer->asChannel()->linkedChat() != clickedChannel)) {
|
||||
Ui::ShowMultilineToast({
|
||||
.text = (_peer->isMegagroup()
|
||||
.text = { _peer->isMegagroup()
|
||||
? tr::lng_group_not_accessible(tr::now)
|
||||
: tr::lng_channel_not_accessible(tr::now)),
|
||||
: tr::lng_channel_not_accessible(tr::now) },
|
||||
});
|
||||
} else {
|
||||
window->showPeerHistory(
|
||||
|
|
|
@ -2487,9 +2487,9 @@ void HistoryWidget::messagesFailed(const RPCError &error, int requestId) {
|
|||
auto was = _peer;
|
||||
controller()->showBackFromStack();
|
||||
Ui::ShowMultilineToast({
|
||||
.text = ((was && was->isMegagroup())
|
||||
.text = { (was && was->isMegagroup())
|
||||
? tr::lng_group_not_accessible(tr::now)
|
||||
: tr::lng_channel_not_accessible(tr::now)),
|
||||
: tr::lng_channel_not_accessible(tr::now) },
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
@ -5594,8 +5594,8 @@ void HistoryWidget::setupGroupCallTracker() {
|
|||
const auto channel = peer->asChannel();
|
||||
if (channel && channel->amAnonymous()) {
|
||||
Ui::ShowMultilineToast({
|
||||
.text = tr::lng_group_call_no_anonymous(tr::now),
|
||||
});
|
||||
.text = { tr::lng_group_call_no_anonymous(tr::now) },
|
||||
});
|
||||
return;
|
||||
} else if (peer->groupCall()) {
|
||||
controller()->startOrJoinGroupCall(peer);
|
||||
|
|
|
@ -48,7 +48,6 @@ private:
|
|||
const TimeId _destroyAt = 0;
|
||||
const Fn<void()> _destroyByTimerCallback;
|
||||
const crl::time _startedAt = 0;
|
||||
crl::time _lastCheckAt = 0;
|
||||
base::Timer _refreshTimer;
|
||||
|
||||
Text::String _text;
|
||||
|
|
|
@ -940,7 +940,7 @@ void SessionController::startOrJoinGroupCall(
|
|||
const auto channel = peer->asChannel();
|
||||
if (channel && channel->amAnonymous()) {
|
||||
Ui::ShowMultilineToast({
|
||||
.text = tr::lng_group_call_no_anonymous(tr::now),
|
||||
.text = { tr::lng_group_call_no_anonymous(tr::now) },
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue