1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-11-22 17:22:22 -05:00

Fix message model to/from

This commit is contained in:
Lance Stout 2013-09-12 23:47:44 -07:00
parent ae364437ec
commit 5de45e0c12
2 changed files with 3 additions and 3 deletions

View File

@ -241,7 +241,7 @@ module.exports = function (client, app) {
if (!contact.lockedResource) {
contact.lockedResource = msg.from.full;
} else if (msg.from !== contact.lockedResource) {
} else if (msg.from.full !== contact.lockedResource) {
contact.lockedResource = undefined;
}
}

View File

@ -11,8 +11,8 @@ module.exports = HumanModel.define({
type: 'message',
props: {
id: ['string', true, ''],
to: ['string', true, ''],
from: ['string', true, ''],
to: ['object', true],
from: ['object', true],
body: ['string', true, ''],
type: ['string', true, 'normal'],
acked: ['bool', true, false],