[polari/wip/raresv/nick-popover: 2/10] application: Initialize UserStatusMonitor on startup
- From: Rares Visalom <raresvisalom src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/raresv/nick-popover: 2/10] application: Initialize UserStatusMonitor on startup
- Date: Sun, 2 Oct 2016 17:54:40 +0000 (UTC)
commit 1b3f2cae29ba4f942185cec3fc155196d373c8d2
Author: raresv <rares visalom gmail com>
Date: Thu Aug 4 01:13:59 2016 +0300
application: Initialize UserStatusMonitor on startup
The UserStatusMonitor connects to the AccountsMonitor signals
in order to get notified whenever accounts are added or removed.
We want to listen to those signals right from the beginning,
because we need to able to listen for the ::room-added signal
(emitted by the RoomManager inside each UserTracker) right from
the start, as failing to receive this signal would mean that the
room is not tracked.
https://bugzilla.gnome.org/show_bug.cgi?id=760853
src/application.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 9700751..f416246 100644
--- a/src/application.js
+++ b/src/application.js
@@ -12,6 +12,7 @@ const MainWindow = imports.mainWindow;
const PasteManager = imports.pasteManager;
const RoomManager = imports.roomManager;
const TelepathyClient = imports.telepathyClient;
+const UserTracker = imports.userTracker;
const Utils = imports.utils;
const NetworksManager = imports.networksManager;
@@ -133,6 +134,7 @@ const Application = new Lang.Class({
this._roomManager = RoomManager.getDefault();
this._accountsMonitor = AccountsMonitor.getDefault();
+ this._userStatusMonitor = UserTracker.getUserStatusMonitor();
this._networksManager = NetworksManager.getDefault();
this._accountsMonitor.connect('account-status-changed',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]