From e112fa92fe5f30054629ad65a0f44345d980752a Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 5 Jun 2012 12:37:06 +0200 Subject: [PATCH] telepathyClient: decline dispatch op when approving unsupported channel type It shouldn't happen in theory but best to be safe than sorry. https://bugzilla.gnome.org/show_bug.cgi?id=677457 --- js/ui/telepathyClient.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js index aecf64370..ca60e31a0 100644 --- a/js/ui/telepathyClient.js +++ b/js/ui/telepathyClient.js @@ -237,6 +237,8 @@ const Client = new Lang.Class({ this._approveCall(account, conn, channel, dispatchOp, context); else if (chanType == Tp.IFACE_CHANNEL_TYPE_FILE_TRANSFER) this._approveFileTransfer(account, conn, channel, dispatchOp, context); + else + Shell.decline_dispatch_op(context, 'Unsupported channel type'); }, _approveTextChannel: function(account, conn, channel, dispatchOp, context) {