diff options
| author | Izhar Firdaus <izhar@inigo-tech.com> | 2011-04-15 01:41:44 +0800 |
|---|---|---|
| committer | Izhar Firdaus <izhar@inigo-tech.com> | 2011-04-15 01:41:44 +0800 |
| commit | d156187f7e670ae3d6301b099da940712231ffbe (patch) | |
| tree | d12e8df3c320b7c81b7ac497bcfee9c198782cad /gnomeshell@pidgin.im | |
| parent | 11345b4d0099020fc3b156ddd504d98898498fe0 (diff) | |
dont popup window if conversation is not IM
Diffstat (limited to 'gnomeshell@pidgin.im')
| -rw-r--r-- | gnomeshell@pidgin.im/extension.js | 5 |
1 files changed, 5 insertions, 0 deletions
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); |
