remove some extraneous logs that were used for debugging

pull/1/head
ansuz 4 years ago
parent 3086eb45c5
commit a79a5f6a2d

@ -798,7 +798,6 @@ var factory = function (Util, Hash, CPNetflux, Sortify, nThen, Crypto) {
return void console.error(err); return void console.error(err);
} }
metadata = ref.internal.metadata = (data && data[0]) || undefined; metadata = ref.internal.metadata = (data && data[0]) || undefined;
console.log("TEAM_METADATA", metadata);
}); });
}).nThen(function (w) { }).nThen(function (w) {
if (!config.keys.teamEdPublic && metadata && metadata.validateKey) { if (!config.keys.teamEdPublic && metadata && metadata.validateKey) {

@ -144,7 +144,6 @@ define([
var onMessage = function (data, cb) { var onMessage = function (data, cb) {
// data = { type: 'type', content: {msg: 'msg', hash: 'hash'} } // data = { type: 'type', content: {msg: 'msg', hash: 'hash'} }
console.debug(data.type, data.content);
pushMessage(data); pushMessage(data);
if (data.content && typeof (data.content.getFormatText) === "function") { if (data.content && typeof (data.content.getFormatText) === "function") {
var text = $('<div>').html(data.content.getFormatText()).text(); var text = $('<div>').html(data.content.getFormatText()).text();
@ -188,7 +187,6 @@ define([
onMessageHandlers.push(function (data, el) { onMessageHandlers.push(function (data, el) {
var type = data.type; var type = data.type;
if (types.indexOf(type) === -1 && !(teams && /^team-/.test(type))) { return; } if (types.indexOf(type) === -1 && !(teams && /^team-/.test(type))) { return; }
console.log('okokok');
cfg.onMessage(data, el); cfg.onMessage(data, el);
}); });
} }

@ -1027,7 +1027,6 @@ MessengerUI, Messages) {
Common.mailbox.subscribe(['notifications', 'team'], { Common.mailbox.subscribe(['notifications', 'team'], {
onMessage: function (data, el) { onMessage: function (data, el) {
console.log(data, el, div);
if (el) { if (el) {
$(div).prepend(el); $(div).prepend(el);
} }

Loading…
Cancel
Save