Skip to content

Commit 6b24aff

Browse files
committed
Merge branch 'develop' of github.com:vector-im/riot-web into rxl881/snapshot
2 parents 3806252 + 7cc8fed commit 6b24aff

8 files changed

Lines changed: 57 additions & 24 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Changes in [0.13.3](https://github.com/vector-im/riot-web/releases/tag/v0.13.3) (2017-12-04)
2+
============================================================================================
3+
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.13.2...v0.13.3)
4+
5+
* Bump js-sdk, react-sdk version to pull in fix for [setting room publicity in a group](https://github.com/matrix-org/matrix-js-sdk/commit/aa3201ebb0fff5af2fb733080aa65ed1f7213de6).
6+
17
Changes in [0.13.2](https://github.com/vector-im/riot-web/releases/tag/v0.13.2) (2017-11-28)
28
============================================================================================
39
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.13.1...v0.13.2)

‎electron_app/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "riot-web",
33
"productName": "Riot",
44
"main": "src/electron-main.js",
5-
"version": "0.13.2",
5+
"version": "0.13.3",
66
"description": "A feature-rich client for Matrix.org",
77
"author": "Vector Creations Ltd.",
88
"dependencies": {

‎package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "riot-web",
33
"productName": "Riot",
44
"main": "electron_app/src/electron-main.js",
5-
"version": "0.13.2",
5+
"version": "0.13.3",
66
"description": "A feature-rich client for Matrix.org",
77
"author": "Vector Creations Ltd.",
88
"repository": {
@@ -68,8 +68,8 @@
6868
"gfm.css": "^1.1.1",
6969
"highlight.js": "^9.0.0",
7070
"linkifyjs": "^2.1.3",
71-
"matrix-js-sdk": "0.9.1",
72-
"matrix-react-sdk": "0.11.2",
71+
"matrix-js-sdk": "0.9.2",
72+
"matrix-react-sdk": "0.11.3",
7373
"modernizr": "^3.1.0",
7474
"pako": "^1.0.5",
7575
"prop-types": "^15.5.10",

‎src/components/structures/LeftPanel.js‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ limitations under the License.
1717
'use strict';
1818

1919
import React from 'react';
20-
import { DragDropContext } from 'react-dnd';
21-
import HTML5Backend from 'react-dnd-html5-backend';
2220
import classNames from 'classnames';
2321
import { KeyCode } from 'matrix-react-sdk/lib/Keyboard';
2422
import sdk from 'matrix-react-sdk';
@@ -199,4 +197,4 @@ var LeftPanel = React.createClass({
199197
}
200198
});
201199

202-
module.exports = DragDropContext(HTML5Backend)(LeftPanel);
200+
module.exports = LeftPanel;

‎src/components/structures/RoomSubList.js‎

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -327,43 +327,46 @@ var RoomSubList = React.createClass({
327327
},
328328

329329
calcManualOrderTagData: function(room) {
330-
var index = this.state.sortedList.indexOf(room);
330+
const index = this.state.sortedList.indexOf(room);
331331

332332
// we sort rooms by the lexicographic ordering of the 'order' metadata on their tags.
333333
// for convenience, we calculate this for now a floating point number between 0.0 and 1.0.
334334

335-
var orderA = 0.0; // by default we're next to the beginning of the list
335+
let orderA = 0.0; // by default we're next to the beginning of the list
336336
if (index > 0) {
337-
var prevTag = this.state.sortedList[index - 1].tags[this.props.tagName];
337+
const prevTag = this.state.sortedList[index - 1].tags[this.props.tagName];
338338
if (!prevTag) {
339-
console.error("Previous room in sublist is not tagged to be in this list. This should never happen.")
340-
}
341-
else if (prevTag.order === undefined) {
339+
console.error("Previous room in sublist is not tagged to be in this list. This should never happen.");
340+
} else if (prevTag.order === undefined) {
342341
console.error("Previous room in sublist has no ordering metadata. This should never happen.");
343-
}
344-
else {
342+
} else {
345343
orderA = prevTag.order;
346344
}
347345
}
348346

349-
var orderB = 1.0; // by default we're next to the end of the list too
347+
let orderB = 1.0; // by default we're next to the end of the list too
350348
if (index < this.state.sortedList.length - 1) {
351-
var nextTag = this.state.sortedList[index + 1].tags[this.props.tagName];
349+
const nextTag = this.state.sortedList[index + 1].tags[this.props.tagName];
352350
if (!nextTag) {
353-
console.error("Next room in sublist is not tagged to be in this list. This should never happen.")
354-
}
355-
else if (nextTag.order === undefined) {
351+
console.error("Next room in sublist is not tagged to be in this list. This should never happen.");
352+
} else if (nextTag.order === undefined) {
356353
console.error("Next room in sublist has no ordering metadata. This should never happen.");
357-
}
358-
else {
354+
} else {
359355
orderB = nextTag.order;
360356
}
361357
}
362358

363-
var order = (orderA + orderB) / 2.0;
359+
const order = (orderA + orderB) / 2.0;
360+
364361
if (order === orderA || order === orderB) {
365362
console.error("Cannot describe new list position. This should be incredibly unlikely.");
366-
// TODO: renumber the list
363+
this.state.sortedList.forEach((room, index) => {
364+
MatrixClientPeg.get().setRoomTag(
365+
room.roomId, this.props.tagName,
366+
{order: index / this.state.sortedList.length},
367+
);
368+
});
369+
return index / this.state.sortedList.length;
367370
}
368371

369372
return order;

‎src/skins/vector/css/matrix-react-sdk/views/rooms/_AppsDrawer.scss‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ limitations under the License.
8585
flex-direction: row;
8686
align-items: center;
8787
justify-content: space-between;
88+
cursor: pointer;
89+
}
90+
91+
.mx_AppTileMenuBarTitle {
92+
display: flex;
93+
flex-direction: row;
94+
align-items: center;
95+
pointer-events: none;
8896
}
8997

9098
.mx_AppTileMenuBarWidgets {
@@ -93,6 +101,7 @@ limitations under the License.
93101
flex-direction: row;
94102
align-items: center;
95103
}
104+
96105
.mx_AppTileMenuBarWidget {
97106
// pointer-events: none;
98107
cursor: pointer;

‎src/skins/vector/img/maximize.svg‎

Lines changed: 9 additions & 0 deletions
Loading

‎src/skins/vector/img/minimize.svg‎

Lines changed: 8 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)