[polari/wip/fmuellner/combined-gsoc: 69/103] userTracker: Base watchNick() on baseNick
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/fmuellner/combined-gsoc: 69/103] userTracker: Base watchNick() on baseNick
- Date: Fri, 22 Jul 2016 13:39:46 +0000 (UTC)
commit 9af63a5e53fdbdde826cd3cf54cb911a7cfbed35
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]