You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-07-30 04:23:07 +03:00
Fix examples.
This commit is contained in:
@ -1 +1 @@
|
|||||||
../../../dist/browser-matrix-dev.js
|
../../../dist/browser-matrix.js
|
@ -135,11 +135,15 @@ rl.on('line', function(line) {
|
|||||||
// ==== END User input
|
// ==== END User input
|
||||||
|
|
||||||
// show the room list after syncing.
|
// show the room list after syncing.
|
||||||
matrixClient.on("syncComplete", function() {
|
matrixClient.on("sync", function(state, prevState, data) {
|
||||||
setRoomList();
|
switch (state) {
|
||||||
printRoomList();
|
case "PREPARED":
|
||||||
printHelp();
|
setRoomList();
|
||||||
rl.prompt();
|
printRoomList();
|
||||||
|
printHelp();
|
||||||
|
rl.prompt();
|
||||||
|
break;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
matrixClient.on("Room", function() {
|
matrixClient.on("Room", function() {
|
||||||
|
@ -44,7 +44,15 @@ window.onload = function() {
|
|||||||
disableButtons(true, true, true);
|
disableButtons(true, true, true);
|
||||||
};
|
};
|
||||||
|
|
||||||
client.on("syncComplete", function () {
|
matrixClient.on("sync", function(state, prevState, data) {
|
||||||
|
switch (state) {
|
||||||
|
case "PREPARED":
|
||||||
|
syncComplete();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
function syncComplete() {
|
||||||
document.getElementById("result").innerHTML = "<p>Ready for calls.</p>";
|
document.getElementById("result").innerHTML = "<p>Ready for calls.</p>";
|
||||||
disableButtons(false, true, true);
|
disableButtons(false, true, true);
|
||||||
|
|
||||||
@ -85,5 +93,5 @@ client.on("syncComplete", function () {
|
|||||||
call = c;
|
call = c;
|
||||||
addListeners(call);
|
addListeners(call);
|
||||||
});
|
});
|
||||||
});
|
}
|
||||||
client.startClient();
|
client.startClient();
|
||||||
|
@ -1 +1 @@
|
|||||||
../../../dist/browser-matrix-dev.js
|
../../../dist/browser-matrix.js
|
Reference in New Issue
Block a user