Fix to/from user ID meta
This commit is contained in:
parent
3056d6c742
commit
484ccdc014
|
@ -33,7 +33,7 @@ function Message(options) {
|
||||||
this.viewCount = options.viewCount || 0;
|
this.viewCount = options.viewCount || 0;
|
||||||
|
|
||||||
this.meta = {
|
this.meta = {
|
||||||
system : {}, // we'll always have this one
|
System : {}, // we'll always have this one
|
||||||
};
|
};
|
||||||
|
|
||||||
if(_.isObject(options.meta)) {
|
if(_.isObject(options.meta)) {
|
||||||
|
@ -125,11 +125,11 @@ Message.FtnPropertyNames = {
|
||||||
// Note: kludges are stored with their names as-is
|
// Note: kludges are stored with their names as-is
|
||||||
|
|
||||||
Message.prototype.setLocalToUserId = function(userId) {
|
Message.prototype.setLocalToUserId = function(userId) {
|
||||||
this.meta.system.local_to_user_id = userId;
|
this.meta.System.local_to_user_id = userId;
|
||||||
};
|
};
|
||||||
|
|
||||||
Message.prototype.setLocalFromUserId = function(userId) {
|
Message.prototype.setLocalFromUserId = function(userId) {
|
||||||
this.meta.system.local_from_user_id = userId;
|
this.meta.System.local_from_user_id = userId;
|
||||||
};
|
};
|
||||||
|
|
||||||
Message.prototype.load = function(options, cb) {
|
Message.prototype.load = function(options, cb) {
|
||||||
|
|
Loading…
Reference in New Issue