Mercurial Hosting > nabble
changeset 46:7ac7f55e16cf
subscription message
| author | Franklin Schmidt <fschmidt@gmail.com> | 
|---|---|
| date | Mon, 14 Jun 2021 15:35:05 -0600 | 
| parents | ea757b766baa | 
| children | 72765b66e2c3 | 
| files | src/nabble/model/Message.java | 
| diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] | 
line wrap: on
 line diff
diff -r ea757b766baa -r 7ac7f55e16cf src/nabble/model/Message.java --- a/src/nabble/model/Message.java Mon Jun 14 15:24:06 2021 -0600 +++ b/src/nabble/model/Message.java Mon Jun 14 15:35:05 2021 -0600 @@ -147,9 +147,10 @@ public static final Format TEXT = MessageFormatImpls.TEXT; public static final Format HTML = MessageFormatImpls.HTML; public static final Format MAILING_LIST = MailingLists.msgFmt; + private static final Format SUBSCRIPTION = new MailMessageFormat('s', "subscription"); public boolean isMail() { - return this==MAILING_LIST; + return this==MAILING_LIST || this==SUBSCRIPTION; } } @@ -161,7 +162,7 @@ public Message(String raw,Format format) { this.raw = raw; - this.format = format!=null ? format : Format.TEXT; + this.format = format; } public String getRaw() {
