-
Notifications
You must be signed in to change notification settings - Fork 92
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
show only related notifications for specific user? #20
Comments
I'm not really sure what you're trying to do. You want to show one user a gritter notification when he/she receives a message? That should be possible with the BTW, I'm going on vacation in about 7 hours. So if you leave a reply after 7 hours, I won't be able to reply until I'm back. |
Yes that is exactly what I want. I want the person I send a message to to get a grittier notification in their view that tells them that I sent a message. I do have a current_user method but couldn't figure out how to make this happen. I will take a closer look at the add grittier message. I guess the problem I couldn't figure out is how to target the user with grittier. How would I tell grittier to show this to the given user. Enjoy your vacation :) |
What you want to do is have some kind of Controller action that's repeatedly being called by a JavaScript timer. Within this action you check if the user has new messages. When there's a new message, you just send JavaScript back to the browser showing a Gritter notification. Here's an example:
Inside the User Model you can have a |
I'm sorry if this is the wrong place to post this but I didn't see another place in the documentation. I am curious if there is a way to show only gritter notifications related to a specific user? An example I can think of is if I am sending a message to another user, I would like only for that user to get a gritter notification.
Can this be done?
The text was updated successfully, but these errors were encountered: