[polari/wip/raresv/popoverRebasedOnTracker] renamed _emitNotification() to _notifyNickAvailable() and swapped its parmas



commit d8a4ff019ffdb9b50432766cc06ac568b9b0ad5f
Author: raresv <rares visalom gmail com>
Date:   Wed Jul 27 02:00:32 2016 +0300

    renamed _emitNotification() to _notifyNickAvailable() and swapped its parmas

 src/userTracker.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/userTracker.js b/src/userTracker.js
index 902ef1a..f0f148b 100644
--- a/src/userTracker.js
+++ b/src/userTracker.js
@@ -199,7 +199,7 @@ const UserTracker = new Lang.Class({
             this.emit("status-changed::" + baseNick, baseNick, status);
 
             if (this._shouldNotifyNick(member.alias))
-                this._emitNotification(room, member);
+                this._notifyNickAvailable(member, room);
 
             this._setNotifyActionEnabled(member.alias, false);
         }
@@ -290,7 +290,7 @@ const UserTracker = new Lang.Class({
         this._getRoomHandlers(room).delete(handlerID);
     },
 
-    _emitNotification: function (room, member) {
+    _notifyNickAvailable: function (member, room) {
         let notification = new Gio.Notification();
         notification.set_title(_("User is online"));
         notification.set_body(_("User %s is now online.").format(member.alias));


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