fix: Minor fixes

This commit is contained in:
Christian Pauly 2021-02-06 20:16:58 +01:00
parent 09c812dd6e
commit c058d39cbb
3 changed files with 11 additions and 1 deletions

View File

@ -87,6 +87,11 @@
"type": "text",
"placeholders": {}
},
"areYouSureYouWantToLogout": "Are you sure you want to log out?",
"@areYouSureYouWantToLogout": {
"type": "text",
"placeholders": {}
},
"askSSSSCache": "Please enter your secure store passphrase or recovery key to cache the keys.",
"@askSSSSCache": {
"type": "text",

View File

@ -28,6 +28,7 @@ class Discover extends StatefulWidget {
class _DiscoverState extends State<Discover> {
Future<PublicRoomsResponse> _publicRoomsResponse;
String _lastServer;
Timer _coolDown;
String _genericSearchTerm;
@ -117,6 +118,10 @@ class _DiscoverState extends State<Discover> {
final server = _genericSearchTerm?.isValidMatrixId ?? false
? _genericSearchTerm.domain
: widget.server;
if (_lastServer != server) {
_lastServer = server;
_publicRoomsResponse = null;
}
_publicRoomsResponse ??= Matrix.of(context)
.client
.searchPublicRooms(

View File

@ -61,7 +61,7 @@ class _SettingsState extends State<Settings> {
void logoutAction(BuildContext context) async {
if (await showOkCancelAlertDialog(
context: context,
title: L10n.of(context).areYouSure,
title: L10n.of(context).areYouSureYouWantToLogout,
) ==
OkCancelResult.cancel) {
return;