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"