looshi / Blaze-Haus

Edit blaze templates and css at runtime
6 stars 0 forks source link

Server - Don't send document 'changed' to user who made the edit #21

Closed looshi closed 9 years ago

looshi commented 9 years ago

I realized we can simply not send down the 'changed' ddp message for the User who made the edit. Perhaps it's as simple as filtering the publication where lastModifiedBy != Meteor.user()

I think this will simplify the Client code logic. Right now in the editor's observer we have some logic like this : "Did I make this edit ? If so, don't update my editor" it's been buggy and hard to implement, so I think we can just get rid of this client side logic and do it on the server.

looshi commented 9 years ago

done