Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
2bd6529ca0
6 changed files with 43 additions and 5 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -1,2 +1,6 @@
|
||||||
node_modules
|
/node_modules
|
||||||
lib
|
/lib
|
||||||
|
|
||||||
|
# version file and tarball created by 'npm pack'
|
||||||
|
/git-revision.txt
|
||||||
|
/matrix-react-sdk-*.tgz
|
||||||
|
|
9
CHANGES.rst
Normal file
9
CHANGES.rst
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
Changes in matrix-react-sdk v0.1.0 (2016-02-24)
|
||||||
|
===============================================
|
||||||
|
* Significant refactor: remove separation between views and controllers
|
||||||
|
* This release of the react-sdk will require additional components to function.
|
||||||
|
See https://github.com/vector-im/vector-web for a complete application.
|
||||||
|
|
||||||
|
Changes in matrix-react-sdk v0.0.2 (2015-10-28)
|
||||||
|
===============================================
|
||||||
|
* Initial release
|
4
CONTRIBUTING.rst
Normal file
4
CONTRIBUTING.rst
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
Contributing code to The React SDK
|
||||||
|
==================================
|
||||||
|
|
||||||
|
matrix-react-sdk follows the same pattern as https://github.com/matrix-org/synapse/blob/master/CONTRIBUTING.rst
|
21
jenkins.sh
Executable file
21
jenkins.sh
Executable file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
export NVM_DIR="/home/jenkins/.nvm"
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
|
||||||
|
nvm use 4
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
# install the version of js-sdk provided to us by jenkins
|
||||||
|
npm install ./node_modules/matrix-js-sdk-*.tgz
|
||||||
|
|
||||||
|
# install the other dependencies
|
||||||
|
npm install
|
||||||
|
|
||||||
|
# delete the old tarball, if it exists
|
||||||
|
rm -f matrix-react-sdk-*.tgz
|
||||||
|
|
||||||
|
# build our tarball
|
||||||
|
npm pack
|
|
@ -17,7 +17,7 @@
|
||||||
"build": "babel src -d lib --source-maps",
|
"build": "babel src -d lib --source-maps",
|
||||||
"start": "babel src -w -d lib --source-maps",
|
"start": "babel src -w -d lib --source-maps",
|
||||||
"clean": "rimraf lib",
|
"clean": "rimraf lib",
|
||||||
"prepublish": "npm run build"
|
"prepublish": "npm run build; git rev-parse HEAD > git-revision.txt"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"classnames": "^2.1.2",
|
"classnames": "^2.1.2",
|
||||||
|
|
|
@ -127,7 +127,7 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
onRoomTimeline: function(ev, room, toStartOfTimeline) {
|
onRoomTimeline: function(ev, room, toStartOfTimeline) {
|
||||||
if (toStartOfTimeline) return;
|
if (toStartOfTimeline) return;
|
||||||
this.refreshRoomList();
|
this._delayedRefreshRoomList();
|
||||||
},
|
},
|
||||||
|
|
||||||
onRoomReceipt: function(receiptEvent, room) {
|
onRoomReceipt: function(receiptEvent, room) {
|
||||||
|
@ -137,7 +137,7 @@ module.exports = React.createClass({
|
||||||
for (var i = 0; i < receiptKeys.length; ++i) {
|
for (var i = 0; i < receiptKeys.length; ++i) {
|
||||||
var rcpt = receiptEvent.getContent()[receiptKeys[i]];
|
var rcpt = receiptEvent.getContent()[receiptKeys[i]];
|
||||||
if (rcpt['m.read'] && rcpt['m.read'][MatrixClientPeg.get().credentials.userId]) {
|
if (rcpt['m.read'] && rcpt['m.read'][MatrixClientPeg.get().credentials.userId]) {
|
||||||
this.refreshRoomList();
|
this._delayedRefreshRoomList();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue