[polari] entryArea: Update nick when connection status changes



commit a3e287f6335885b589fa6c33967a96df0fdaee4e
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Feb 28 00:38:40 2014 +0100

    entryArea: Update nick when connection status changes
    
    We currently start listening for self-contact changes when connected,
    but don't update the nick right away. As the account's nickname
    property (which is used while disconnected) may differ from the
    actual nick, we should do so.

 src/entryArea.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/entryArea.js b/src/entryArea.js
index 62c2bfd..9bcaf34 100644
--- a/src/entryArea.js
+++ b/src/entryArea.js
@@ -38,7 +38,6 @@ const EntryArea = new Lang.Class({
             this._room.connect('notify::channel',
                                Lang.bind(this, this._onChannelChanged));
         this._onChannelChanged(room);
-        this._updateNick();
     },
 
     _createWidget: function() {
@@ -138,6 +137,7 @@ const EntryArea = new Lang.Class({
                                                 Lang.bind(this, this._updateNick));
         else
             this._nicknameChangedId = 0;
+        this._updateNick();
     },
 
 


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