Allow markup in some voice chat toasts.

This commit is contained in:
John Preston 2021-03-20 16:23:29 +04:00
parent 2bc2a0e459
commit 7b8e421996
1 changed files with 6 additions and 4 deletions

View File

@ -701,11 +701,13 @@ void Panel::subscribeToChanges(not_null<Data::GroupCall*> real) {
validateRecordingMark(recorded);
Ui::ShowMultilineToast({
.parentOverride = widget(),
.text = { recorded
? tr::lng_group_call_recording_started(tr::now)
.text = (recorded
? tr::lng_group_call_recording_started
: (_call && _call->recordingStoppedByMe())
? tr::lng_group_call_recording_saved(tr::now)
: tr::lng_group_call_recording_stopped(tr::now) },
? tr::lng_group_call_recording_saved
: tr::lng_group_call_recording_stopped)(
tr::now,
Ui::Text::RichLangValue),
});
}, widget()->lifetime());
validateRecordingMark(real->recordStartDate() != 0);