From d0073394151ab357a137fd149d8272a2705bed24 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sat, 15 Nov 2014 13:28:11 +0100 Subject: [PATCH] Fixes #275 Custom status message doesn't reset. --- converse.js | 2 +- docs/CHANGES.rst | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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]