diff --git a/converse.js b/converse.js index 6d9a212f5..8fc72efa8 100644 --- a/converse.js +++ b/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; diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index 2016cbac6..8d5d23ebb 100644 --- a/docs/CHANGES.rst +++ b/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]