1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-12-26 09:28:49 -05:00

Remove some old console logs

This commit is contained in:
Lance Stout 2014-01-05 03:10:57 -08:00
parent 2de5116ada
commit 4c3d3fee3e
6 changed files with 9 additions and 8 deletions

View File

@ -33,7 +33,6 @@ module.exports = function (jid, id, type, source, cb) {
} }
resp = resp.toJSON(); resp = resp.toJSON();
console.log(JSON.stringify(resp));
type = resp.vCardTemp.photo.type || type; type = resp.vCardTemp.photo.type || type;
var data = resp.vCardTemp.photo.data; var data = resp.vCardTemp.photo.data;

View File

@ -167,9 +167,15 @@ module.exports = function (client, app) {
pres.status = pres.status || ''; pres.status = pres.status || '';
pres.priority = pres.priority || 0; pres.priority = pres.priority || 0;
var resource = contact.resources.get(pres.from); var resource = contact.resources.get(pres.from);
if (resource) { if (resource) {
pres.from = pres.from.full; pres.from = pres.from.full;
// Explicitly set idleSince to null to clear
// the model's value.
if (!pres.idleSince) {
pres.idleSince = null;
}
resource.set(pres); resource.set(pres);
} else { } else {
resource = new Resource(pres); resource = new Resource(pres);
@ -318,14 +324,11 @@ module.exports = function (client, app) {
client.on('receipt', function (msg) { client.on('receipt', function (msg) {
msg = msg.toJSON(); msg = msg.toJSON();
console.log(msg);
var contact = me.getContact(msg.from, msg.to); var contact = me.getContact(msg.from, msg.to);
console.log(contact);
if (!contact) return; if (!contact) return;
var original = Message.idLookup(msg.to[msg.type === 'groupchat' ? 'full' : 'bare'], msg.receipt); var original = Message.idLookup(msg.to[msg.type === 'groupchat' ? 'full' : 'bare'], msg.receipt);
console.log(original);
if (!original) return; if (!original) return;

View File

@ -13,7 +13,7 @@ module.exports = HumanModel.define({
show: ['string', true, ''], show: ['string', true, ''],
priority: ['number', true, 0], priority: ['number', true, 0],
chatState: ['string', true, 'gone'], chatState: ['string', true, 'gone'],
idleSince: 'date', idleSince: ['date', false, undefined],
discoInfo: 'object', discoInfo: 'object',
timezoneOffset: 'number' timezoneOffset: 'number'
}, },

View File

@ -61,7 +61,6 @@ module.exports = HumanView.extend({
handleEmbedClick: function (e) { handleEmbedClick: function (e) {
if (e.shiftKey) { if (e.shiftKey) {
e.preventDefault(); e.preventDefault();
console.log(e);
$(e.currentTarget).toggleClass('collapsed'); $(e.currentTarget).toggleClass('collapsed');
} }
}, },

View File

@ -1,6 +1,6 @@
{ {
"name": "otalk.im", "name": "otalk.im",
"version": "0.0.2", "version": "0.0.3",
"description": "Otalk: WebRTC Enabled XMPP Client, in the Browser", "description": "Otalk: WebRTC Enabled XMPP Client, in the Browser",
"repository": { "repository": {
"type": "git", "type": "git",

View File

@ -1,5 +1,5 @@
CACHE MANIFEST CACHE MANIFEST
# 0.0.1 1388917749028 # 0.0.3 1388920243107
CACHE: CACHE:
/app.js /app.js