[polari/wip/raresv/popoverRebasedOnTracker] userTracker: Base watchNick() on baseNick
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/raresv/popoverRebasedOnTracker] userTracker: Base watchNick() on baseNick
- Date: Tue, 19 Jul 2016 22:03:08 +0000 (UTC)
commit 66d711830d83b36e064c29069d7ef05ddc2af2ed
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Jul 14 02:34:34 2016 +0200
userTracker: Base watchNick() on baseNick
It doesn't really make sense to call watchNick() for a particular
nickname rather than a basenick - the callback would only be called
if the first contact that appears online matches the parameter.
Rather than expecting callers to remember to call the method for
a basenick, handle that ourselves.
src/userTracker.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/userTracker.js b/src/userTracker.js
index aaf074b..4e4ef51 100644
--- a/src/userTracker.js
+++ b/src/userTracker.js
@@ -361,7 +361,7 @@ const UserTracker = new Lang.Class({
this._ensureHandlerMappingForRoom(room);
this._roomMapping.get(room)._handlerMapping.set(this._handlerCounter, {
- nickName: nick,
+ nickName: Polari.util_get_basenick(nick),
handler: callback
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]