|
@@ -16,12 +16,12 @@ Router.route("/", function () {
|
|
// specify a route that allows the current user to chat to another users
|
|
// specify a route that allows the current user to chat to another users
|
|
Router.route("/chat/:_id", {
|
|
Router.route("/chat/:_id", {
|
|
subscriptions: function () {
|
|
subscriptions: function () {
|
|
- Meteor._debug("Subscriptions");
|
|
|
|
|
|
+ // Meteor._debug("Subscriptions");
|
|
return Meteor.subscribe("chats");
|
|
return Meteor.subscribe("chats");
|
|
},
|
|
},
|
|
|
|
|
|
action: function (req, wtf, next) {
|
|
action: function (req, wtf, next) {
|
|
- Meteor._debug("Action", req.url);
|
|
|
|
|
|
+ // Meteor._debug("Action", req.url);
|
|
if (this.ready()) {
|
|
if (this.ready()) {
|
|
console.log("- Now ready");
|
|
console.log("- Now ready");
|
|
|
|
|
|
@@ -35,7 +35,7 @@ Router.route("/chat/:_id", {
|
|
to: "main",
|
|
to: "main",
|
|
data: function () {
|
|
data: function () {
|
|
const other = Meteor.users.findOne({ _id: otherUserId });
|
|
const other = Meteor.users.findOne({ _id: otherUserId });
|
|
- console.log("--- Routing data, other: " + (other ? other.profile.username : "not available"));
|
|
|
|
|
|
+ // console.log("-- Routing data, other: " + (other ? other.profile.username : "not available"));
|
|
return {
|
|
return {
|
|
other: other
|
|
other: other
|
|
};
|
|
};
|