Minor fixes
This commit is contained in:
parent
7e6212ff8a
commit
de29800f29
19 changed files with 156 additions and 104 deletions
|
|
@ -33,7 +33,7 @@ class _SettingsState extends State<Settings> {
|
|||
dynamic profile;
|
||||
void logoutAction(BuildContext context) async {
|
||||
MatrixState matrix = Matrix.of(context);
|
||||
Navigator.of(context).pushAndRemoveUntil(
|
||||
await Navigator.of(context).pushAndRemoveUntil(
|
||||
AppRoute.defaultRoute(context, LoginPage()), (r) => false);
|
||||
await matrix.tryRequestWithLoadingDialog(matrix.client.logout());
|
||||
matrix.clean();
|
||||
|
|
@ -49,7 +49,7 @@ class _SettingsState extends State<Settings> {
|
|||
data: {"displayname": displayname},
|
||||
),
|
||||
);
|
||||
if (success != null && success.length == 0) {
|
||||
if (success != null && success.isEmpty) {
|
||||
Toast.show(
|
||||
"Displayname has been changed",
|
||||
context,
|
||||
|
|
@ -79,7 +79,7 @@ class _SettingsState extends State<Settings> {
|
|||
),
|
||||
),
|
||||
);
|
||||
if (success != null && success.length == 0) {
|
||||
if (success != null && success.isEmpty) {
|
||||
Toast.show(
|
||||
"Avatar has been changed",
|
||||
context,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue