Hi, I would like to notification new article visible to all users. In the scheme of data “Notifications” added value boolean “read: false”, the “false” start the display of the notification of the creation of a new article.
Notifications.insert({
userId: post.userId,
postId: post._id,
read: false
});
User after the launch of the link to the article contained in the notification changes the value of the object “read: true,” causing that notification is not visible to him, and for all users.
How to make to notification visible to other users if one of them changes the value of “read: true”.
[update]
I have an idea to link the data schema Meteor.users id articles and values “true / false” for notification. I hope this works