Bug 972017 Part 4 - Hook up the OT sdk to the direct calling window for Loop. r=nperriault

This commit is contained in:
Mark Banner
2014-10-03 22:42:02 +01:00
parent 1867351e2d
commit 953fc553fa
16 changed files with 1049 additions and 100 deletions

View File

@@ -540,9 +540,15 @@ loop.conversation = (function(mozL10n) {
var dispatcher = new loop.Dispatcher();
var client = new loop.Client();
var sdkDriver = new loop.OTSdkDriver({
dispatcher: dispatcher,
sdk: OT
});
var conversationStore = new loop.store.ConversationStore({}, {
client: client,
dispatcher: dispatcher
dispatcher: dispatcher,
sdkDriver: sdkDriver
});
// XXX For now key this on the pref, but this should really be