Manage presence of the client (same semantics as angular)

This commit is contained in:
Kegan Dougal 2015-07-20 17:14:29 +01:00
parent bcab2f231a
commit 9d110d58e5
2 changed files with 108 additions and 1 deletions

View file

@ -21,7 +21,7 @@ var Loader = require("react-loader");
var MatrixClientPeg = require("../../MatrixClientPeg");
var RoomListSorter = require("../../RoomListSorter");
var Presence = require("../../Presence");
var dis = require("../../dispatcher");
var ComponentBroker = require('../../ComponentBroker');
@ -89,6 +89,7 @@ module.exports = {
window.localStorage.clear();
}
Notifier.stop();
Presence.stop();
MatrixClientPeg.get().removeAllListeners();
MatrixClientPeg.replace(null);
break;
@ -187,6 +188,7 @@ module.exports = {
});
});
Notifier.start();
Presence.start();
cli.startClient();
},