isPrivateTagArea()

This commit is contained in:
Bryan Ashby 2016-07-25 00:58:49 -06:00
parent c2cbc7913c
commit c3ae30a8aa
1 changed files with 5 additions and 1 deletions

View File

@ -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',