From d156187f7e670ae3d6301b099da940712231ffbe Mon Sep 17 00:00:00 2001 From: Izhar Firdaus Date: Fri, 15 Apr 2011 01:41:44 +0800 Subject: dont popup window if conversation is not IM --- gnomeshell@pidgin.im/extension.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gnomeshell@pidgin.im') diff --git a/gnomeshell@pidgin.im/extension.js b/gnomeshell@pidgin.im/extension.js index 2428dcd..f2e4bb1 100644 --- a/gnomeshell@pidgin.im/extension.js +++ b/gnomeshell@pidgin.im/extension.js @@ -251,6 +251,7 @@ const PidginIface = { methods: [ {name: 'PurpleGetIms', inSignature: '', outSignature: 'ai'}, {name: 'PurpleAccountsGetAllActive', inSignature: '', outSignature: 'ai'}, + {name: 'PurpleConversationGetType', inSignature: 'i', outSignature: 'u'}, {name: 'PurpleFindBuddies', inSignature: 'is', outSignature: 'ai'}, {name: 'PurpleFindBuddy', inSignature: 'is', outSignature: 'i'}, {name: 'PurpleAccountGetAlias', inSignature: 'i', outSignature: 's'}, @@ -345,6 +346,10 @@ PidginClient.prototype = { _conversationCreated: function (emitter, conversation) { let proxy = this.proxy(); + if (proxy.PurpleConversationGetTypeSync(conversation) != 1) { + return + }; + let source = this._sources[conversation]; if (!source) { source = new Source(this, conversation); -- cgit