mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-05 12:17:17 +02:00
isPrivateTagArea()
This commit is contained in:
parent
c2cbc7913c
commit
c3ae30a8aa
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue