[polari] telepathyClient: Break up a function



commit df1d7576e5b4f78dadeec78a53b4fc4f891365d2
Author: Florian Müllner <fmuellner gnome org>
Date:   Tue Aug 6 18:04:53 2019 +0200

    telepathyClient: Break up a function
    
    The "params" parameter of the NameOwnerChanged signal currently shadows
    the params parameter to _init() itself. Avoid that by splitting the
    shell client detection into its own function.
    
    https://gitlab.gnome.org/GNOME/polari/merge_requests/133

 src/telepathyClient.js | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/telepathyClient.js b/src/telepathyClient.js
index 137c94d..3c602d0 100644
--- a/src/telepathyClient.js
+++ b/src/telepathyClient.js
@@ -137,7 +137,10 @@ class TelepathyClient extends Tp.BaseClient {
         this._accountsMonitor.prepare(this._onPrepared.bind(this));
 
         this._shellHandlesPrivateChats = false;
+        this._monitorShellClient();
+    }
 
+    _monitorShellClient() {
         // Track whether gnome-shell's built-in chat client is
         // running; unfortunately it uses :uniquify-name, so
         // we cannot simply use Gio.watch_bus_name()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]