isPrivateTagArea()
This commit is contained in:
parent
c2cbc7913c
commit
c3ae30a8aa
|
@ -62,7 +62,7 @@ function Message(options) {
|
|||
};
|
||||
|
||||
this.isPrivate = function() {
|
||||
return this.areaTag === Message.WellKnownAreaTags.Private ? true : false;
|
||||
return Message.isPrivateAreaTag(this.areaTag);
|
||||
};
|
||||
|
||||
this.getMessageTimestampString = function(ts) {
|
||||
|
@ -77,6 +77,10 @@ Message.WellKnownAreaTags = {
|
|||
Bulletin : 'local_bulletin',
|
||||
};
|
||||
|
||||
Message.isPrivateAreaTag = function(areaTag) {
|
||||
return areaTag.toLowerCase() === Message.WellKnownAreaTags.Private;
|
||||
};
|
||||
|
||||
Message.SystemMetaNames = {
|
||||
LocalToUserID : 'local_to_user_id',
|
||||
LocalFromUserID : 'local_from_user_id',
|
||||
|
|
Loading…
Reference in New Issue