Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chatToUser > loggedInUser, how can you compare 2 user object? #1

Open
hughred22 opened this issue Aug 17, 2015 · 1 comment
Open

chatToUser > loggedInUser, how can you compare 2 user object? #1

hughred22 opened this issue Aug 17, 2015 · 1 comment

Comments

@hughred22
Copy link

Sorry can not find a support forum for the book and I will ask question here for your source code (I can provide my purchase receipt if necessary).

I am reading Chapter 8 your Firebase messaging app. I do not get the getHash function in the Utils service. You do this:
if (chatToUser > loggedInUser)
But how can you compare 2 user object?

@arvindr21
Copy link
Member

chatToUser & loggedInUser are 2 strings. Why this works: http://stackoverflow.com/a/7087831/1015046

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

No branches or pull requests

2 participants