chore: Update SDK
This commit is contained in:
parent
379bec9220
commit
bec9046097
5 changed files with 7 additions and 21 deletions
|
|
@ -217,7 +217,7 @@ class BackgroundPush {
|
|||
|
||||
Future<void> setupPush() async {
|
||||
await setupLocalNotificationsPlugin();
|
||||
if (_loginState != LoginState.logged ||
|
||||
if (_loginState != LoginState.loggedIn ||
|
||||
!PlatformInfos.isMobile ||
|
||||
context == null) {
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ class LoadingView extends StatelessWidget {
|
|||
if (Matrix.of(context).loginState != null) {
|
||||
WidgetsBinding.instance.addPostFrameCallback(
|
||||
(_) => VRouter.of(context).to(
|
||||
Matrix.of(context).loginState == LoginState.logged
|
||||
Matrix.of(context).loginState == LoginState.loggedIn
|
||||
? '/rooms'
|
||||
: '/home',
|
||||
queryParameters: VRouter.of(context).queryParameters,
|
||||
|
|
|
|||
|
|
@ -330,9 +330,9 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||
final isInLoginRoutes = {'/home', '/login', '/signup'}
|
||||
.contains(widget.router.currentState.url);
|
||||
if (widget.router.currentState.url == '/' ||
|
||||
(state == LoginState.logged) == isInLoginRoutes) {
|
||||
(state == LoginState.loggedIn) == isInLoginRoutes) {
|
||||
widget.router.currentState.to(
|
||||
loginState == LoginState.logged ? '/rooms' : '/home',
|
||||
loginState == LoginState.loggedIn ? '/rooms' : '/home',
|
||||
queryParameters: widget.router.currentState.queryParameters,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue