Remove the whispered prplIMessage attribute, as it wasn't used and caused a warning in logger.js (because jsProtoHelper didn't implement it), r=clokep.
authorFlorian Quèze <florian@instantbird.org>
Sun, 15 Jan 2012 23:30:09 +0100
changeset 18516 abc3bc15fe428e55cba1691d245df21cb693fb4f
parent 18515 b74cabf0c61559bd5aab4deabe2ae4f85320074f
child 18517 5c6c9d5a540b5c07d438b8e155d3d77c11d8a60e
push id1103
push usermbanner@mozilla.com
push dateTue, 18 Mar 2014 07:44:06 +0000
treeherdercomm-beta@50c6279a0af0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersclokep
Remove the whispered prplIMessage attribute, as it wasn't used and caused a warning in logger.js (because jsProtoHelper didn't implement it), r=clokep.
chat/components/public/prplIMessage.idl
chat/components/src/logger.js
--- a/chat/components/public/prplIMessage.idl
+++ b/chat/components/public/prplIMessage.idl
@@ -83,18 +83,16 @@ interface prplIMessage: nsISupports {
                                                 which are only open for
                                                 internal UI purposes
                                                 (e.g. for contact-aware
                                                  conversions).           */
   /*  PURPLE_MESSAGE_NICK        = 0x0020, /**< Contains your nick.      */
   readonly attribute boolean containsNick;
   /*  PURPLE_MESSAGE_NO_LOG      = 0x0040, /**< Do not log.              */
   readonly attribute boolean noLog;
-  /*  PURPLE_MESSAGE_WHISPER     = 0x0080, /**< Whispered message.       */
-  readonly attribute boolean whispered;
   /*  PURPLE_MESSAGE_ERROR       = 0x0200, /**< Error message.           */
   readonly attribute boolean error;
   /*  PURPLE_MESSAGE_DELAYED     = 0x0400, /**< Delayed message.         */
   readonly attribute boolean delayed;
   /*  PURPLE_MESSAGE_RAW         = 0x0800, /**< "Raw" message - don't
                                                 apply formatting         */
   readonly attribute boolean noFormat;
   /*  PURPLE_MESSAGE_IMAGES      = 0x1000, /**< Message contains images  */
--- a/chat/components/src/logger.js
+++ b/chat/components/src/logger.js
@@ -179,17 +179,17 @@ ConversationLog.prototype = {
       this._init();
 
     if (this.format == "json") {
       let msg = {
         date: new Date(aMessage.time * 1000),
         who: aMessage.who,
         text: aMessage.originalMessage,
         flags: ["outgoing", "incoming", "system", "autoResponse",
-                "containsNick", "whispered", "error", "delayed",
+                "containsNick", "error", "delayed",
                 "noFormat", "containsImages", "notification",
                 "noLinkification"].filter(function(f) aMessage[f])
       };
       let alias = aMessage.alias;
       if (alias && alias != msg.who)
         msg.alias = alias;
       this._log.writeString(JSON.stringify(msg) + "\n");
       return;