[polari] Use correct property names



commit 98d4c250635ef6fef8ebf2b424785af1cac375bd
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Feb 16 19:53:35 2017 +0100

    Use correct property names
    
    Whoops. Thankfully the latest gjs started to complain about
    bloopers like this ...
    
    https://bugzilla.gnome.org/show_bug.cgi?id=778793

 src/accountsMonitor.js |    2 +-
 src/telepathyClient.js |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/accountsMonitor.js b/src/accountsMonitor.js
index 2aedb7a..5ff623b 100644
--- a/src/accountsMonitor.js
+++ b/src/accountsMonitor.js
@@ -103,7 +103,7 @@ const AccountsMonitor = new Lang.Class({
 
     _onPrepareShutdown: function() {
         let presence = Tp.ConnectionPresenceType.OFFLINE;
-        this.accounts.filter(a => a.requested_presence != presence).forEach(a => {
+        this.accounts.filter(a => a.requested_presence_type != presence).forEach(a => {
             this._app.hold();
             a.request_presence_async(presence, 'offline', '', (a, res) => {
                 try {
diff --git a/src/telepathyClient.js b/src/telepathyClient.js
index 9b0c89c..92fdbad 100644
--- a/src/telepathyClient.js
+++ b/src/telepathyClient.js
@@ -208,7 +208,7 @@ const TelepathyClient = new Lang.Class({
                                                        : 'unavailable'));
 
         this._accountsMonitor.enabledAccounts.forEach(a => {
-            if (a.presence_type == Tp.ConnectionPresenceType.AVAILABLE &&
+            if (a.requested_presence_type == Tp.ConnectionPresenceType.AVAILABLE &&
                 a.connection_status == Tp.ConnectionStatus.CONNECTED)
                 this._onAccountStatusChanged(this._accountsMonitor, a);
             else


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