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

Hey #1

Open
awrelll opened this issue Apr 8, 2015 · 1 comment
Open

Hey #1

awrelll opened this issue Apr 8, 2015 · 1 comment

Comments

@awrelll
Copy link

awrelll commented Apr 8, 2015

Can you please tell me what did you use for allowing user A to send a message to user B ?
I'd like to integrate such functionality on my meteor/telescope app.

Thanks!

@eprochasson
Copy link
Owner

Howdy. Before proceeding, a few words of warning: this piece of code hasn't been updated to fare with the newest (stable) version of Meteor. You're very welcome to re-use any code you want, but the "meteor-way" has changed drastically since that was written. Also, I haven't touch that code in 2 years.

in server/messages.js:13, I checked that the sender is not in the receiver's blacklist.
Interestingly, I can't find where one can blacklist another user, maybe it's not implemented (again, very old project). That being said, it's not very complicated to make it better, depending on what kind of permission you want. In the current code, you have a bit of logic to indicate how users are connected (A -> B, or A <-> B), you could for example allow messages exchange only for A <-> B (reciprocal relation). Those relations are stored in the "friends" collection.

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