Skip to content

Commit 07200d7

Browse files
committed
Merge branch 'develop' into matthew/orderable-roomlist
2 parents 4a195dd + d462e0b commit 07200d7

3 files changed

Lines changed: 29 additions & 21 deletions

File tree

‎src/skins/vector/views/molecules/RoomTile.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,8 @@ var RoomTile = React.createClass({
236236
name = this.props.room.getMember(myUserId).events.member.getSender();
237237
}
238238
else {
239-
name = this.props.room.name;
239+
// XXX: We should never display raw room IDs, but sometimes the room name js sdk gives is undefined
240+
name = this.props.room.name || this.props.room.roomId;
240241
}
241242

242243
name = name.replace(":", ":\u200b"); // add a zero-width space to allow linewrapping after the colon

‎src/vector/index.js‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,21 @@ function parseQsFromFragment(location) {
6565
return {};
6666
}
6767

68+
function parseQs(location) {
69+
return qs.parse(location.search.substring(1));
70+
}
71+
6872
// Here, we do some crude URL analysis to allow
6973
// deep-linking. We only support registration
7074
// deep-links in this example.
7175
function routeUrl(location) {
72-
if (location.hash.indexOf('#/register') == 0) {
76+
var params = parseQs(location);
77+
var loginToken = params.loginToken;
78+
if (loginToken) {
79+
window.matrixChat.showScreen('token_login', parseQs(location));
80+
}
81+
else if (location.hash.indexOf('#/register') == 0) {
7382
window.matrixChat.showScreen('register', parseQsFromFragment(location));
74-
} else if (location.hash.indexOf('#/login/cas') == 0) {
75-
window.matrixChat.showScreen('cas_login', parseQsFromFragment(location));
7683
} else {
7784
window.matrixChat.showScreen(location.hash.substring(2));
7885
}

‎vector/index.html‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44
<meta charset="utf-8">
55
<title>Vector</title>
66
<link href='fonts/MyriadPro.css' rel='stylesheet' type='text/css'>
7-
<link rel="apple-touch-icon" sizes="57x57" href="/icons/apple-touch-icon-57x57.png">
8-
<link rel="apple-touch-icon" sizes="60x60" href="/icons/apple-touch-icon-60x60.png">
9-
<link rel="apple-touch-icon" sizes="72x72" href="/icons/apple-touch-icon-72x72.png">
10-
<link rel="apple-touch-icon" sizes="76x76" href="/icons/apple-touch-icon-76x76.png">
11-
<link rel="apple-touch-icon" sizes="114x114" href="/icons/apple-touch-icon-114x114.png">
12-
<link rel="apple-touch-icon" sizes="120x120" href="/icons/apple-touch-icon-120x120.png">
13-
<link rel="apple-touch-icon" sizes="144x144" href="/icons/apple-touch-icon-144x144.png">
14-
<link rel="apple-touch-icon" sizes="152x152" href="/icons/apple-touch-icon-152x152.png">
15-
<link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-touch-icon-180x180.png">
16-
<link rel="icon" type="image/png" href="/icons/favicon-32x32.png" sizes="32x32">
17-
<link rel="icon" type="image/png" href="/icons/android-chrome-192x192.png" sizes="192x192">
18-
<link rel="icon" type="image/png" href="/icons/favicon-96x96.png" sizes="96x96">
19-
<link rel="icon" type="image/png" href="/icons/favicon-16x16.png" sizes="16x16">
20-
<link rel="manifest" href="/icons/manifest.json">
21-
<link rel="shortcut icon" href="/icons/favicon.ico">
7+
<link rel="apple-touch-icon" sizes="57x57" href="icons/apple-touch-icon-57x57.png">
8+
<link rel="apple-touch-icon" sizes="60x60" href="icons/apple-touch-icon-60x60.png">
9+
<link rel="apple-touch-icon" sizes="72x72" href="icons/apple-touch-icon-72x72.png">
10+
<link rel="apple-touch-icon" sizes="76x76" href="icons/apple-touch-icon-76x76.png">
11+
<link rel="apple-touch-icon" sizes="114x114" href="icons/apple-touch-icon-114x114.png">
12+
<link rel="apple-touch-icon" sizes="120x120" href="icons/apple-touch-icon-120x120.png">
13+
<link rel="apple-touch-icon" sizes="144x144" href="icons/apple-touch-icon-144x144.png">
14+
<link rel="apple-touch-icon" sizes="152x152" href="icons/apple-touch-icon-152x152.png">
15+
<link rel="apple-touch-icon" sizes="180x180" href="icons/apple-touch-icon-180x180.png">
16+
<link rel="icon" type="image/png" href="icons/favicon-32x32.png" sizes="32x32">
17+
<link rel="icon" type="image/png" href="icons/android-chrome-192x192.png" sizes="192x192">
18+
<link rel="icon" type="image/png" href="icons/favicon-96x96.png" sizes="96x96">
19+
<link rel="icon" type="image/png" href="icons/favicon-16x16.png" sizes="16x16">
20+
<link rel="manifest" href="icons/manifest.json">
21+
<link rel="shortcut icon" href="icons/favicon.ico">
2222
<meta name="apple-mobile-web-app-title" content="Vector">
2323
<meta name="application-name" content="Vector">
2424
<meta name="msapplication-TileColor" content="#da532c">
25-
<meta name="msapplication-TileImage" content="/icons/mstile-144x144.png">
26-
<meta name="msapplication-config" content="/icons/browserconfig.xml">
25+
<meta name="msapplication-TileImage" content="icons/mstile-144x144.png">
26+
<meta name="msapplication-config" content="icons/browserconfig.xml">
2727
<meta name="theme-color" content="#ffffff">
2828
</head>
2929
<body style="height: 100%;">

0 commit comments

Comments
 (0)