fix: Dialogs

This commit is contained in:
Christian Pauly 2021-01-19 15:46:43 +01:00
commit e15a549375
11 changed files with 104 additions and 68 deletions

View file

@ -516,7 +516,8 @@ class _SettingsState extends State<Settings> {
: null,
onTap: () async {
if (!client.encryption.crossSigning.enabled) {
return BootstrapDialog().show(context);
return BootstrapDialog(l10n: L10n.of(context))
.show(context);
}
if (client.isUnknownSession) {
final input = await showTextInputDialog(
@ -592,7 +593,8 @@ class _SettingsState extends State<Settings> {
: null,
onTap: () async {
if (!client.encryption.keyManager.enabled) {
return BootstrapDialog().show(context);
return BootstrapDialog(l10n: L10n.of(context))
.show(context);
}
if (!(await client.encryption.keyManager.isCached())) {
await requestSSSSCache(context);