[polari] chatroomManager: Fix getRoomByName() for rooms without channel



commit 426f35fe21a7880874c6c58472e38649b332b656
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Mar 9 19:17:23 2016 +0100

    chatroomManager: Fix getRoomByName() for rooms without channel
    
    This somehow slipped through the cracks when we started to show
    offline rooms - just use the :channel-name property instead of
    TpChannel:identifier, as its available independently from the
    connection status.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=763385

 src/chatroomManager.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/chatroomManager.js b/src/chatroomManager.js
index c1561fc..1f295df 100644
--- a/src/chatroomManager.js
+++ b/src/chatroomManager.js
@@ -498,7 +498,7 @@ const _ChatroomManager = new Lang.Class({
 
     getRoomByName: function(name) {
         for (let id in this._rooms)
-            if (this._rooms[id].channel.identifier == name)
+            if (this._rooms[id].channel_name == name)
                 return this._rooms[id];
         return null;
     },


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