diff --git a/lib/client.js b/lib/client.js index 78f0cf84b..44f96f20e 100644 --- a/lib/client.js +++ b/lib/client.js @@ -1427,7 +1427,7 @@ MatrixClient.prototype.setPresence = function(opts, callback) { }); if (typeof opts === "string") { - opts = { presence: opts } + opts = { presence: opts }; } var validStates = ["offline", "online", "unavailable"];