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