|
@@ -16,15 +16,15 @@ Template.notification.events({
|
|
Template.notification.helpers({
|
|
Template.notification.helpers({
|
|
mode: 'board',
|
|
mode: 'board',
|
|
isOfActivityType(activityId, type) {
|
|
isOfActivityType(activityId, type) {
|
|
- const activity = Activities.findOne(activityId);
|
|
|
|
|
|
+ const activity = ReactiveCache.getActivity(activityId);
|
|
return activity && activity.activityType === type;
|
|
return activity && activity.activityType === type;
|
|
},
|
|
},
|
|
activityType(activityId) {
|
|
activityType(activityId) {
|
|
- const activity = Activities.findOne(activityId);
|
|
|
|
|
|
+ const activity = ReactiveCache.getActivity(activityId);
|
|
return activity ? activity.activityType : '';
|
|
return activity ? activity.activityType : '';
|
|
},
|
|
},
|
|
activityUser(activityId) {
|
|
activityUser(activityId) {
|
|
- const activity = Activities.findOne(activityId);
|
|
|
|
|
|
+ const activity = ReactiveCache.getActivity(activityId);
|
|
return activity && activity.userId;
|
|
return activity && activity.userId;
|
|
},
|
|
},
|
|
});
|
|
});
|