From a28f9dbb28295200e56066ac3ae75bc97b74669b Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 10 Dec 2018 10:45:59 -1000 Subject: Handle missing rpc methods --- lib/render-msg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/render-msg.js') diff --git a/lib/render-msg.js b/lib/render-msg.js index d76f126..1093710 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -218,7 +218,8 @@ RenderMsg.prototype.recpsIds = function () { } RenderMsg.prototype.buttonsCommon = function () { - var chan = this.msg.value.content.channel + var c = this.msg.value.content + var chan = c && c.channel var recps = this.recpsIds() return [ chan ? h('input', {type: 'hidden', name: 'channel', value: chan}) : '', -- cgit v1.2.3