mirror of
https://github.com/moparisthebest/kaiwa
synced 2024-11-26 03:02:25 -05:00
Fix message model to/from
This commit is contained in:
parent
ae364437ec
commit
5de45e0c12
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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],
|
||||
|
Loading…
Reference in New Issue
Block a user