[polari] chatView: Base online/offline status on basenick



commit 441c3bd2e003221ce17470f49c0a511a2c59f7ab
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Sep 17 14:26:46 2015 +0200

    chatView: Base online/offline status on basenick
    
    Since commit c96929c701bd, we use different colors for active and inactive
    nicks. This has proven quite helpful when scrolling through the log, however
    it can be confusing when multiple variants of a nick are present. As whether
    a particular user is online at all is much more interesting than whether
    they are currently identified by "foo" or "foo_", use a common status for
    all nicks we think refer to the same person.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755133

 src/chatView.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 6fb624a..1459d05 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -4,6 +4,7 @@ const Gio = imports.gi.Gio;
 const Gtk = imports.gi.Gtk;
 const Pango = imports.gi.Pango;
 const PangoCairo = imports.gi.PangoCairo;
+const Polari = imports.gi.Polari;
 const Tp = imports.gi.TelepathyGLib;
 const Tpl = imports.gi.TelepathyLogger;
 
@@ -614,7 +615,7 @@ const ChatView = new Lang.Class({
     },
 
     _getNickTagName: function(nick) {
-        return NICKTAG_PREFIX + nick;
+        return NICKTAG_PREFIX + Polari.util_get_basenick(nick);
     },
 
     _setNickStatus: function(nick, status) {


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