socialite icon indicating copy to clipboard operation
socialite copied to clipboard

Hey

Open awrelll opened this issue 9 years ago • 1 comments

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!

awrelll avatar Apr 08 '15 10:04 awrelll

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.

eprochasson avatar Apr 13 '15 05:04 eprochasson