1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-07-30 04:23:07 +03:00

Hook up the callback fn for scrollback. Update CHANGELOG.

This commit is contained in:
Kegan Dougal
2015-06-23 12:04:43 +01:00
parent 553325d66f
commit 7534f59af2
3 changed files with 8 additions and 2 deletions

View File

@ -24,6 +24,10 @@ var rl = readline.createInterface({
});
rl.setPrompt("$ ");
rl.on('line', function(line) {
if (line.trim().length === 0) {
rl.prompt();
return;
}
if (line.indexOf("/join ") === 0 && !viewingRoom) {
var roomIndex = line.split(" ")[1];
viewingRoom = roomList[roomIndex];