{"size": 645, "ext": "js", "max_stars_repo_path": "packages/lesswrong/lib/collections/conversations/views.js", "max_stars_repo_name": "adrusi/Lesswrong2", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "packages/lesswrong/lib/collections/conversations/views.js", "max_issues_repo_name": "adrusi/Lesswrong2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "packages/lesswrong/lib/collections/conversations/views.js", "max_forks_repo_name": "adrusi/Lesswrong2", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 29.3181818182, "max_line_length": 78, "alphanum_fraction": 0.696124031}
import { getSetting } from 'meteor/vulcan:core';
import Conversations from "./collection.js";

// will be common to all other view unless specific properties are overwritten
Conversations.addDefaultView(function (terms) {
  const alignmentForum = getSetting('AlignmentForum', false) ? {af: true} : {}
  return {
    selector: {
      ...alignmentForum
    },
    options: {limit: 1000},
  };
});

// notifications for a specific user (what you see in the notifications menu)
Conversations.addView("userConversations", function (terms) {
  return {
    selector: {participantIds: terms.userId},
    options: {sort: {latestActivity: -1}}
  };
});
