Skip to content

Commit

Permalink
fix duplicate username screens on first google signin
Browse files Browse the repository at this point in the history
  • Loading branch information
mdanics committed May 1, 2019
1 parent fb38550 commit 4c247c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ tryCreateUserRecord(BuildContext context) async {
"following": {user.id: true}, // add current user so they can see their own posts in feed,
});
}
userRecord = await ref.document(user.id).get();
}

currentUserModel = new User.fromDocument(userRecord);
Expand Down Expand Up @@ -291,7 +292,9 @@ class _HomePageState extends State<HomePage> {

void silentLogin(BuildContext context) async {
await _silentLogin(context);
setState(() {});
setState(() {
triedSilentLogin = true;
});
}

void navigationTapped(int page) {
Expand Down

0 comments on commit 4c247c6

Please sign in to comment.