Bug 772773 - "is typing..." message in chat box doesn't disappear. r=florian.
authorMike Conley <mconley@mozilla.com>
Mon, 23 Jul 2012 15:23:53 -0400
changeset 10709 04beb37df7a5126fc5ebb7b432f5e1c7560291dc
parent 10708 e8fc9787b2eefde77d7b21623369f22f647eed85
child 10710 239e6b72515ece83fe3d5723968d615b31adbed3
push id8075
push usermconley@mozilla.com
push dateMon, 23 Jul 2012 19:35:37 +0000
treeherdercomm-central@a7b28a555957 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersflorian
bugs772773
Bug 772773 - "is typing..." message in chat box doesn't disappear. r=florian.
mail/components/im/content/imconversation.xml
--- a/mail/components/im/content/imconversation.xml
+++ b/mail/components/im/content/imconversation.xml
@@ -1164,21 +1164,16 @@
            return;
 
          switch(aTopic) {
          case "new-text":
            if (this.loaded)
              this.addMsg(aSubject);
            break;
 
-         case "update-typing":
-           if (this.tab && this.tab.selected)
-             this.updateTyping();
-           break;
-
          case "status-text-changed":
            this._statusText = aData;
            this.displayStatusText();
            break;
 
          case "replying-to-prompt":
            this.addPrompt(aData);
            break;
@@ -1186,16 +1181,17 @@
          case "target-purple-conversation-changed":
          case "update-conv-title":
            if (this.tab)
                this.tab.setAttribute("label", this.conv.title);
            // Update the status too.
          case "update-buddy-status":
          case "update-buddy-icon":
          case "update-conv-chatleft":
+         case "update-typing":
            if (this.tab && this.tab.selected)
              this.updateConvStatus();
            break;
 
          case "chat-buddy-add":
            aSubject.QueryInterface(Ci.nsISimpleEnumerator);
            while (aSubject.hasMoreElements())
              this.addBuddy(aSubject.getNext());