[polari] Set the username to be the same as the nickname



commit 9b81e76466c9b42839037d7ef56f0f00e65dc3d8
Author: Daniel Landau <daniel landau fi>
Date:   Mon Feb 22 21:14:02 2016 +0200

    Set the username to be the same as the nickname
    
    Connecting to ZNC fails with a NetworkError if username is wrong. By
    default telepathy-idle uses the system login when there is no username
    set on the account, make the assumption that the nickname is more likely
    to match what the user wants as username and that most users don't want
    to have a separate username from nickname.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762481

 src/connections.js |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/connections.js b/src/connections.js
index 5ccb10c..512acfc 100644
--- a/src/connections.js
+++ b/src/connections.js
@@ -383,8 +383,9 @@ const ConnectionDetails = new Lang.Class({
     },
 
     _detailsFromParams: function(params, oldDetails) {
-        let details = { account: GLib.Variant.new('s', params.account),
-                        server:  GLib.Variant.new('s', params.server) };
+        let details = { account:  GLib.Variant.new('s', params.account),
+                        username: GLib.Variant.new('s', params.account),
+                        server:   GLib.Variant.new('s', params.server) };
 
         if (params.port)
             details.port = GLib.Variant.new('u', params.port);


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