mirror of https://github.com/vector-im/riot-web
Merge remote-tracking branch 'origin/develop' into develop
commit
0666af26bb
|
@ -466,7 +466,7 @@ module.exports = React.createClass({
|
||||||
this.notifyNewScreen('home');
|
this.notifyNewScreen('home');
|
||||||
break;
|
break;
|
||||||
case 'view_set_mxid':
|
case 'view_set_mxid':
|
||||||
this._setMxId();
|
this._setMxId(payload);
|
||||||
break;
|
break;
|
||||||
case 'view_start_chat_or_reuse':
|
case 'view_start_chat_or_reuse':
|
||||||
this._chatCreateOrReuse(payload.user_id);
|
this._chatCreateOrReuse(payload.user_id);
|
||||||
|
@ -680,7 +680,7 @@ module.exports = React.createClass({
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
_setMxId: function() {
|
_setMxId: function(payload) {
|
||||||
const SetMxIdDialog = sdk.getComponent('views.dialogs.SetMxIdDialog');
|
const SetMxIdDialog = sdk.getComponent('views.dialogs.SetMxIdDialog');
|
||||||
const close = Modal.createDialog(SetMxIdDialog, {
|
const close = Modal.createDialog(SetMxIdDialog, {
|
||||||
homeserverUrl: MatrixClientPeg.get().getHomeserverUrl(),
|
homeserverUrl: MatrixClientPeg.get().getHomeserverUrl(),
|
||||||
|
@ -689,6 +689,11 @@ module.exports = React.createClass({
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'cancel_after_sync_prepared',
|
action: 'cancel_after_sync_prepared',
|
||||||
});
|
});
|
||||||
|
if (payload.go_home_on_cancel) {
|
||||||
|
dis.dispatch({
|
||||||
|
action: 'view_home_page',
|
||||||
|
});
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.onRegistered(credentials);
|
this.onRegistered(credentials);
|
||||||
|
@ -769,6 +774,11 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'view_set_mxid',
|
action: 'view_set_mxid',
|
||||||
|
// If the set_mxid dialog is cancelled, view /home because if the browser
|
||||||
|
// was pointing at /user/@someone:domain?action=chat, the URL needs to be
|
||||||
|
// reset so that they can revisit /user/.. // (and trigger
|
||||||
|
// `_chatCreateOrReuse` again)
|
||||||
|
go_home_on_cancel: true,
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -227,7 +227,6 @@ module.exports = React.createClass({
|
||||||
? _t("%(severalUsers)sjoined", { severalUsers: "" })
|
? _t("%(severalUsers)sjoined", { severalUsers: "" })
|
||||||
: _t("%(oneUser)sjoined", { oneUser: "" });
|
: _t("%(oneUser)sjoined", { oneUser: "" });
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case "left":
|
case "left":
|
||||||
if (repeats > 1) {
|
if (repeats > 1) {
|
||||||
|
@ -238,7 +237,8 @@ module.exports = React.createClass({
|
||||||
res = (plural)
|
res = (plural)
|
||||||
? _t("%(severalUsers)sleft", { severalUsers: "" })
|
? _t("%(severalUsers)sleft", { severalUsers: "" })
|
||||||
: _t("%(oneUser)sleft", { oneUser: "" });
|
: _t("%(oneUser)sleft", { oneUser: "" });
|
||||||
} break;
|
}
|
||||||
|
break;
|
||||||
case "joined_and_left":
|
case "joined_and_left":
|
||||||
if (repeats > 1) {
|
if (repeats > 1) {
|
||||||
res = (plural)
|
res = (plural)
|
||||||
|
@ -259,7 +259,7 @@ module.exports = React.createClass({
|
||||||
res = (plural)
|
res = (plural)
|
||||||
? _t("%(severalUsers)sleft and rejoined", { severalUsers: "" })
|
? _t("%(severalUsers)sleft and rejoined", { severalUsers: "" })
|
||||||
: _t("%(oneUser)sleft and rejoined", { oneUser: "" });
|
: _t("%(oneUser)sleft and rejoined", { oneUser: "" });
|
||||||
} break;
|
}
|
||||||
break;
|
break;
|
||||||
case "invite_reject":
|
case "invite_reject":
|
||||||
if (repeats > 1) {
|
if (repeats > 1) {
|
||||||
|
|
|
@ -576,26 +576,24 @@ module.exports = React.createClass({
|
||||||
{ _t('Never send encrypted messages to unverified devices in this room from this device') }.
|
{ _t('Never send encrypted messages to unverified devices in this room from this device') }.
|
||||||
</label>;
|
</label>;
|
||||||
|
|
||||||
if (!isEncrypted &&
|
if (!isEncrypted && roomState.mayClientSendStateEvent("m.room.encryption", cli)) {
|
||||||
roomState.mayClientSendStateEvent("m.room.encryption", cli)) {
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" ref="encrypt" onClick={ this.onEnableEncryptionClick }/>
|
<input type="checkbox" ref="encrypt" onClick={ this.onEnableEncryptionClick }/>
|
||||||
<img className="mx_RoomSettings_e2eIcon" src="img/e2e-unencrypted.svg" width="12" height="12" />
|
<img className="mx_RoomSettings_e2eIcon mx_filterFlipColor" src="img/e2e-unencrypted.svg" width="12" height="12" />
|
||||||
{ _t('Enable encryption') } { _t('(warning: cannot be disabled again!)') }
|
{ _t('Enable encryption') } { _t('(warning: cannot be disabled again!)') }
|
||||||
</label>
|
</label>
|
||||||
{ settings }
|
{ settings }
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<label>
|
<label>
|
||||||
{ isEncrypted
|
{ isEncrypted
|
||||||
? <img className="mx_RoomSettings_e2eIcon" src="img/e2e-verified.svg" width="10" height="12" />
|
? <img className="mx_RoomSettings_e2eIcon mx_filterFlipColor" src="img/e2e-verified.svg" width="10" height="12" />
|
||||||
: <img className="mx_RoomSettings_e2eIcon" src="img/e2e-unencrypted.svg" width="12" height="12" />
|
: <img className="mx_RoomSettings_e2eIcon mx_filterFlipColor" src="img/e2e-unencrypted.svg" width="12" height="12" />
|
||||||
}
|
}
|
||||||
{ isEncrypted ? _t("Encryption is enabled in this room") : _t("Encryption is not enabled in this room") }.
|
{ isEncrypted ? _t("Encryption is enabled in this room") : _t("Encryption is not enabled in this room") }.
|
||||||
</label>
|
</label>
|
||||||
|
|
|
@ -615,8 +615,8 @@
|
||||||
"%(actionVerb)s this person?": "Diese Person %(actionVerb)s?",
|
"%(actionVerb)s this person?": "Diese Person %(actionVerb)s?",
|
||||||
"This room has no local addresses": "Dieser Raum hat keine lokale Adresse",
|
"This room has no local addresses": "Dieser Raum hat keine lokale Adresse",
|
||||||
"This room is private or inaccessible to guests. You may be able to join if you register": "Dieser Raum ist privat oder für Gäste nicht zugänglich. Du kannst jedoch eventuell beitreten, wenn du dich registrierst",
|
"This room is private or inaccessible to guests. You may be able to join if you register": "Dieser Raum ist privat oder für Gäste nicht zugänglich. Du kannst jedoch eventuell beitreten, wenn du dich registrierst",
|
||||||
"Tried to load a specific point in this room's timeline, but you do not have permission to view the message in question": "Versuchte einen spezifischen Punkt in der Raum-Chronik zu laden, aber du hast keine Berechtigung die angeforderte Nachricht anzuzeigen",
|
"Tried to load a specific point in this room's timeline, but you do not have permission to view the message in question.": "Versuchte einen spezifischen Punkt in der Raum-Chronik zu laden, aber du hast keine Berechtigung die angeforderte Nachricht anzuzeigen.",
|
||||||
"Tried to load a specific point in this room's timeline, but was unable to find it": "Der Versuch, einen spezifischen Punkt im Chatverlauf zu laden, ist fehlgeschlagen. Der Punkt konnte nicht gefunden werden",
|
"Tried to load a specific point in this room's timeline, but was unable to find it.": "Der Versuch, einen spezifischen Punkt im Chatverlauf zu laden, ist fehlgeschlagen. Der Punkt konnte nicht gefunden werden.",
|
||||||
"Turn Markdown off": "Markdown deaktiveren",
|
"Turn Markdown off": "Markdown deaktiveren",
|
||||||
"Turn Markdown on": "Markdown einschalten",
|
"Turn Markdown on": "Markdown einschalten",
|
||||||
"Unable to load device list": "Geräteliste konnte nicht geladen werden",
|
"Unable to load device list": "Geräteliste konnte nicht geladen werden",
|
||||||
|
|
|
@ -389,7 +389,7 @@
|
||||||
"Who would you like to add to this room?": "คุณต้องการเพิ่มใครเข้าห้องนี้?",
|
"Who would you like to add to this room?": "คุณต้องการเพิ่มใครเข้าห้องนี้?",
|
||||||
"Who would you like to communicate with?": "คุณต้องการสื่อสารกับใคร?",
|
"Who would you like to communicate with?": "คุณต้องการสื่อสารกับใคร?",
|
||||||
"You're not in any rooms yet! Press": "คุณยังไม่ได้อยู่ในห้องใดเลย! กด",
|
"You're not in any rooms yet! Press": "คุณยังไม่ได้อยู่ในห้องใดเลย! กด",
|
||||||
"You are trying to access %(roomName)s": "คุณกำลังพยายามเข้าสู่ %(roomName)s",
|
"You are trying to access %(roomName)s.": "คุณกำลังพยายามเข้าสู่ %(roomName)s",
|
||||||
"You have <a>disabled</a> URL previews by default.": "ค่าเริ่มต้นของคุณ<a>ปิดใช้งาน</a>ตัวอย่าง URL เอาไว้",
|
"You have <a>disabled</a> URL previews by default.": "ค่าเริ่มต้นของคุณ<a>ปิดใช้งาน</a>ตัวอย่าง URL เอาไว้",
|
||||||
"You have <a>enabled</a> URL previews by default.": "ค่าเริ่มต้นของคุณ<a>เปิดใช้งาน</a>ตัวอย่าง URL เอาไว้",
|
"You have <a>enabled</a> URL previews by default.": "ค่าเริ่มต้นของคุณ<a>เปิดใช้งาน</a>ตัวอย่าง URL เอาไว้",
|
||||||
"you must be a": "คุณต้องเป็น",
|
"you must be a": "คุณต้องเป็น",
|
||||||
|
|
|
@ -290,7 +290,7 @@
|
||||||
"Would you like to": "你要",
|
"Would you like to": "你要",
|
||||||
"You are already in a call.": "你已在電話通話中",
|
"You are already in a call.": "你已在電話通話中",
|
||||||
"You're not in any rooms yet! Press": "你尚未加入任何聊天室!請按",
|
"You're not in any rooms yet! Press": "你尚未加入任何聊天室!請按",
|
||||||
"You are trying to access %(roomName)s.": "你將進入 %(roomName)聊天室",
|
"You are trying to access %(roomName)s.": "你將進入 %(roomName)s聊天室",
|
||||||
"You cannot place a call with yourself.": "你不能打電話給自已",
|
"You cannot place a call with yourself.": "你不能打電話給自已",
|
||||||
"You cannot place VoIP calls in this browser.": "在此瀏覽器下無法置入網路電話通話",
|
"You cannot place VoIP calls in this browser.": "在此瀏覽器下無法置入網路電話通話",
|
||||||
"Sun": "星期日",
|
"Sun": "星期日",
|
||||||
|
|
Loading…
Reference in New Issue