Skip to content

do not save token Id, if value is null#149

Merged
jankapunkt merged 3 commits intofix/connection-eventsfrom
fix/null-user-issue
Feb 13, 2024
Merged

do not save token Id, if value is null#149
jankapunkt merged 3 commits intofix/connection-eventsfrom
fix/null-user-issue

Conversation

@bratelefant
Copy link
Copy Markdown
Collaborator

Summary

Do not save token Id on logging in, if no value is provided

Linked issue(s)

#148

Involved parts of the project

User.js

Reproduction

cf. the PR; however, I could observe improved resuming of a suspended iOS app, successfully restoring the session user.

@bratelefant
Copy link
Copy Markdown
Collaborator Author

@jankapunkt Can you check why lint fails? Local npm run lint yields no errors, after I did a npm run lint:fix.

console.error.apply(console, arguments);
}
: function () {};
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the linter has some weird understanding of indentation on nested ternary operators. Maybe this one might work:

if (typeof Meteor !== 'undefined') {
  return Meteor._debug;
}

return typeof console !== 'undefined' && console.error
  ? function () { console.error.apply(console, arguments); }
  : function () {};

@bratelefant
Copy link
Copy Markdown
Collaborator Author

Ok looks like lint is working now. Could figure out why it did not throw any errors on my box though...

@jankapunkt jankapunkt merged commit 8c26120 into fix/connection-events Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Meteor.user() is sometimes undefined on resuming the app from background

2 participants