Separate out the activity watcher from presence code so I can hook read receipts into it without tangling it into the presence code.

This commit is contained in:
David Baker 2015-10-26 13:54:54 +00:00
parent 5a760b71d0
commit a850f19cd4
3 changed files with 95 additions and 31 deletions

View file

@ -16,6 +16,7 @@ limitations under the License.
var MatrixClientPeg = require("../../MatrixClientPeg");
var RoomListSorter = require("../../RoomListSorter");
var UserActivity = require("../../UserActivity");
var Presence = require("../../Presence");
var dis = require("../../dispatcher");
@ -92,6 +93,7 @@ module.exports = {
window.localStorage.clear();
}
Notifier.stop();
UserActivity.stop();
Presence.stop();
MatrixClientPeg.get().stopClient();
MatrixClientPeg.get().removeAllListeners();
@ -316,6 +318,7 @@ module.exports = {
});
});
Notifier.start();
UserActivity.start();
Presence.start();
cli.startClient();
},