mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-10-14 11:27:23 +02:00
Merge branch 'main' of gitlab.com:famedly/fluffychat
This commit is contained in:
commit
d070780d21
@ -3,7 +3,6 @@ import 'package:famedlysdk/encryption.dart';
|
|||||||
import 'package:famedlysdk/encryption/utils/bootstrap.dart';
|
import 'package:famedlysdk/encryption/utils/bootstrap.dart';
|
||||||
import 'package:famedlysdk/famedlysdk.dart';
|
import 'package:famedlysdk/famedlysdk.dart';
|
||||||
import 'package:fluffychat/components/dialogs/adaptive_flat_button.dart';
|
import 'package:fluffychat/components/dialogs/adaptive_flat_button.dart';
|
||||||
import 'package:fluffychat/utils/sentry_controller.dart';
|
|
||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:fluffychat/utils/platform_infos.dart';
|
import 'package:fluffychat/utils/platform_infos.dart';
|
||||||
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
@ -179,24 +178,10 @@ class _BootstrapDialogState extends State<BootstrapDialog> {
|
|||||||
_recoveryKeyInputLoading = true;
|
_recoveryKeyInputLoading = true;
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
final input = _recoveryKeyTextEditingController.text.trim();
|
|
||||||
await bootstrap.newSsssKey.unlock(
|
await bootstrap.newSsssKey.unlock(
|
||||||
keyOrPassphrase: input,
|
keyOrPassphrase: _recoveryKeyTextEditingController.text,
|
||||||
);
|
);
|
||||||
await bootstrap.openExistingSsss();
|
await bootstrap.openExistingSsss();
|
||||||
if (widget.client.encryption.crossSigning.enabled) {
|
|
||||||
Logs().v(
|
|
||||||
'Cross signing is already enabled. Try to self-sign');
|
|
||||||
try {
|
|
||||||
await widget.client.encryption.crossSigning
|
|
||||||
.selfSign(recoveryKey: input);
|
|
||||||
} catch (e, s) {
|
|
||||||
// ignore: unawaited_futures
|
|
||||||
SentryController.captureException(
|
|
||||||
'Unable to self sign with recovery key after successfully open existing SSSS: ${e.toString()}',
|
|
||||||
s);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
Logs().w('Unable to unlock SSSS', e, s);
|
Logs().w('Unable to unlock SSSS', e, s);
|
||||||
setState(() => _recoveryKeyInputError =
|
setState(() => _recoveryKeyInputError =
|
||||||
|
@ -524,7 +524,7 @@
|
|||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"emoteInvalid": "Neplatná klávesová zkratka emoji!",
|
"emoteInvalid": "Neplatný kód emotikony!",
|
||||||
"@emoteInvalid": {
|
"@emoteInvalid": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
@ -2121,5 +2121,51 @@
|
|||||||
"@noPublicRoomsFound": {
|
"@noPublicRoomsFound": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"audioPlayerPlay": "Přehrát",
|
||||||
|
"@audioPlayerPlay": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"audioPlayerPause": "Pozastavit",
|
||||||
|
"@audioPlayerPause": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"badServerLoginTypesException": "Homeserver podporuje přihlášení typu:\n{serverVersions}\nAle tato aplikace podporuje pouze:\n{supportedVersions}",
|
||||||
|
"@badServerLoginTypesException": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {
|
||||||
|
"serverVersions": {},
|
||||||
|
"supportedVersions": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"clearText": "Smazat text",
|
||||||
|
"@clearText": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"userUnknownVerification": "Status ověření uživatele je neznámý",
|
||||||
|
"@userUnknownVerification": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"userNotVerified": "Uživatel není ověřen",
|
||||||
|
"@userNotVerified": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"userVerified": "Uživatel je ověřen",
|
||||||
|
"@userVerified": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"badServerVersionsException": "Homeserver podporuje specifikaci verzí:\n{serverVersions}\nAle tato aplikace podporuje pouze verze {supportedVersions}",
|
||||||
|
"@badServerVersionsException": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {
|
||||||
|
"serverVersions": {},
|
||||||
|
"supportedVersions": {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1960,5 +1960,45 @@
|
|||||||
"@publicKey": {
|
"@publicKey": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"clearText": "Tøm tekst",
|
||||||
|
"@clearText": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"userNotVerified": "Ubekreftet bruker",
|
||||||
|
"@userNotVerified": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"userVerified": "Bekreftet bruker",
|
||||||
|
"@userVerified": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"audioPlayerPlay": "Spill av",
|
||||||
|
"@audioPlayerPlay": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"audioPlayerPause": "Pause",
|
||||||
|
"@audioPlayerPause": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"security": "Sikkerhet",
|
||||||
|
"@security": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"all": "Alle",
|
||||||
|
"@all": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"contacts": "Kontakter",
|
||||||
|
"@contacts": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -223,7 +223,7 @@ packages:
|
|||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: main
|
ref: main
|
||||||
resolved-ref: fb5a0bc6a20c2b60e72ac409c4506d0a319e7fb8
|
resolved-ref: "41522e868d7672f2a67b0f2e3bae050435f15f4f"
|
||||||
url: "https://gitlab.com/famedly/famedlysdk.git"
|
url: "https://gitlab.com/famedly/famedlysdk.git"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.1"
|
version: "0.0.1"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user