Bläddra i källkod

Fixes #275 Custom status message doesn't reset.

JC Brand 10 år sedan
förälder
incheckning
d007339415
2 ändrade filer med 2 tillägg och 1 borttagningar
  1. 1 1
      converse.js
  2. 1 0
      docs/CHANGES.rst

+ 1 - 1
converse.js

@@ -1416,7 +1416,7 @@
 
             showStatusMessage: function (msg) {
                 msg = msg || this.model.get('status');
-                if (msg) {
+                if (typeof msg === "string") {
                     this.$el.find('p.user-custom-message').text(msg).attr('title', msg);
                 }
                 return this;

+ 1 - 0
docs/CHANGES.rst

@@ -19,6 +19,7 @@ Changelog
 * #251 Non-minified builds for debugging. [jcbrand]
 * #264 Remove unnecessary commas for ie8 compatibility. [Deuteu]
 * #267 Unread messages counter wrongly gets incremented by chat state notifications. [Deuteu]
+* #275 Custom status message doesn't reset. [jcbrand]
 * #278 Unread messages counter doesn't unbind it's events. [Deuteu]
 * #279 Handle more field types for MUC config forms. [gbonvehi]
 * #280 New config option, ``hide_offline_users`` [gbonvehi]