Fix login without google services #33

This commit is contained in:
Christian Pauly 2020-04-17 07:52:01 +02:00
parent fd806ea74c
commit fef65c4fc6
4 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,7 @@
# Version 0.12.4 - 2020-04-17
### Fixed
- Login without google services
# Version 0.12.2 - 2020-04-12
### Changes:
- New set homeserver UX

View File

@ -155,7 +155,11 @@ class MatrixState extends State<Matrix> {
token = null;
}
if (token?.isEmpty ?? true) {
showToast(I18n.of(context).noGoogleServicesWarning);
showToast(
I18n.of(context).noGoogleServicesWarning,
duration: Duration(seconds: 15),
);
return;
}
await client.setPushers(
token,

View File

@ -30,6 +30,7 @@ class App extends StatelessWidget {
builder: (BuildContext context) => ThemeSwitcherWidget(
child: Builder(
builder: (BuildContext context) => StyledToast(
duration: Duration(seconds: 5),
child: MaterialApp(
title: 'FluffyChat',
theme: ThemeSwitcherWidget.of(context).themeData,

View File

@ -11,7 +11,7 @@ description: Chat with your friends.
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 0.12.3+35
version: 0.12.4+36
environment:
sdk: ">=2.6.0 <3.0.0"