mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-02-25 19:00:45 +01:00
fix: Minor fixes
This commit is contained in:
parent
09c812dd6e
commit
c058d39cbb
@ -87,6 +87,11 @@
|
|||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders": {}
|
"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": "Please enter your secure store passphrase or recovery key to cache the keys.",
|
||||||
"@askSSSSCache": {
|
"@askSSSSCache": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
|
@ -28,6 +28,7 @@ class Discover extends StatefulWidget {
|
|||||||
|
|
||||||
class _DiscoverState extends State<Discover> {
|
class _DiscoverState extends State<Discover> {
|
||||||
Future<PublicRoomsResponse> _publicRoomsResponse;
|
Future<PublicRoomsResponse> _publicRoomsResponse;
|
||||||
|
String _lastServer;
|
||||||
Timer _coolDown;
|
Timer _coolDown;
|
||||||
String _genericSearchTerm;
|
String _genericSearchTerm;
|
||||||
|
|
||||||
@ -117,6 +118,10 @@ class _DiscoverState extends State<Discover> {
|
|||||||
final server = _genericSearchTerm?.isValidMatrixId ?? false
|
final server = _genericSearchTerm?.isValidMatrixId ?? false
|
||||||
? _genericSearchTerm.domain
|
? _genericSearchTerm.domain
|
||||||
: widget.server;
|
: widget.server;
|
||||||
|
if (_lastServer != server) {
|
||||||
|
_lastServer = server;
|
||||||
|
_publicRoomsResponse = null;
|
||||||
|
}
|
||||||
_publicRoomsResponse ??= Matrix.of(context)
|
_publicRoomsResponse ??= Matrix.of(context)
|
||||||
.client
|
.client
|
||||||
.searchPublicRooms(
|
.searchPublicRooms(
|
||||||
|
@ -61,7 +61,7 @@ class _SettingsState extends State<Settings> {
|
|||||||
void logoutAction(BuildContext context) async {
|
void logoutAction(BuildContext context) async {
|
||||||
if (await showOkCancelAlertDialog(
|
if (await showOkCancelAlertDialog(
|
||||||
context: context,
|
context: context,
|
||||||
title: L10n.of(context).areYouSure,
|
title: L10n.of(context).areYouSureYouWantToLogout,
|
||||||
) ==
|
) ==
|
||||||
OkCancelResult.cancel) {
|
OkCancelResult.cancel) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user