Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
ccbfdcc661
6 changed files with 37 additions and 33 deletions
|
@ -360,7 +360,7 @@ export function bodyToHtml(content, highlights, opts) {
|
||||||
'mx_EventTile_bigEmoji': emojiBody,
|
'mx_EventTile_bigEmoji': emojiBody,
|
||||||
'markdown-body': isHtml,
|
'markdown-body': isHtml,
|
||||||
});
|
});
|
||||||
return <span className={className} dangerouslySetInnerHTML={{ __html: safeBody }} />;
|
return <span className={className} dangerouslySetInnerHTML={{ __html: safeBody }} dir="auto" />;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function emojifyText(text) {
|
export function emojifyText(text) {
|
||||||
|
|
|
@ -396,7 +396,7 @@ module.exports = React.createClass({
|
||||||
}, (err) => {
|
}, (err) => {
|
||||||
modal.close();
|
modal.close();
|
||||||
Modal.createDialog(ErrorDialog, {
|
Modal.createDialog(ErrorDialog, {
|
||||||
title: _t('Failed to reject invitation'),
|
title: _t('Failed to reject invitation'),
|
||||||
description: err.toString(),
|
description: err.toString(),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -445,8 +445,8 @@ module.exports = React.createClass({
|
||||||
title: _t('Create Room'),
|
title: _t('Create Room'),
|
||||||
description: _t('Room name (optional)'),
|
description: _t('Room name (optional)'),
|
||||||
button: _t('Create Room'),
|
button: _t('Create Room'),
|
||||||
onFinished: (should_create, name) => {
|
onFinished: (shouldCreate, name) => {
|
||||||
if (should_create) {
|
if (shouldCreate) {
|
||||||
const createOpts = {};
|
const createOpts = {};
|
||||||
if (name) createOpts.name = name;
|
if (name) createOpts.name = name;
|
||||||
createRoom({createOpts}).done();
|
createRoom({createOpts}).done();
|
||||||
|
@ -579,44 +579,44 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
// switch view to the given room
|
// switch view to the given room
|
||||||
//
|
//
|
||||||
// @param {Object} room_info Object containing data about the room to be joined
|
// @param {Object} roomInfo Object containing data about the room to be joined
|
||||||
// @param {string=} room_info.room_id ID of the room to join. One of room_id or room_alias must be given.
|
// @param {string=} roomInfo.room_id ID of the room to join. One of room_id or room_alias must be given.
|
||||||
// @param {string=} room_info.room_alias Alias of the room to join. One of room_id or room_alias must be given.
|
// @param {string=} roomInfo.room_alias Alias of the room to join. One of room_id or room_alias must be given.
|
||||||
// @param {boolean=} room_info.auto_join If true, automatically attempt to join the room if not already a member.
|
// @param {boolean=} roomInfo.auto_join If true, automatically attempt to join the room if not already a member.
|
||||||
// @param {boolean=} room_info.show_settings Makes RoomView show the room settings dialog.
|
// @param {boolean=} roomInfo.show_settings Makes RoomView show the room settings dialog.
|
||||||
// @param {string=} room_info.event_id ID of the event in this room to show: this will cause a switch to the
|
// @param {string=} roomInfo.event_id ID of the event in this room to show: this will cause a switch to the
|
||||||
// context of that particular event.
|
// context of that particular event.
|
||||||
// @param {Object=} room_info.third_party_invite Object containing data about the third party
|
// @param {Object=} roomInfo.third_party_invite Object containing data about the third party
|
||||||
// we received to join the room, if any.
|
// we received to join the room, if any.
|
||||||
// @param {string=} room_info.third_party_invite.inviteSignUrl 3pid invite sign URL
|
// @param {string=} roomInfo.third_party_invite.inviteSignUrl 3pid invite sign URL
|
||||||
// @param {string=} room_info.third_party_invite.invitedEmail The email address the invite was sent to
|
// @param {string=} roomInfo.third_party_invite.invitedEmail The email address the invite was sent to
|
||||||
// @param {Object=} room_info.oob_data Object of additional data about the room
|
// @param {Object=} roomInfo.oob_data Object of additional data about the room
|
||||||
// that has been passed out-of-band (eg.
|
// that has been passed out-of-band (eg.
|
||||||
// room name and avatar from an invite email)
|
// room name and avatar from an invite email)
|
||||||
_viewRoom: function(room_info) {
|
_viewRoom: function(roomInfo) {
|
||||||
this.focusComposer = true;
|
this.focusComposer = true;
|
||||||
|
|
||||||
const newState = {
|
const newState = {
|
||||||
initialEventId: room_info.event_id,
|
initialEventId: roomInfo.event_id,
|
||||||
highlightedEventId: room_info.event_id,
|
highlightedEventId: roomInfo.event_id,
|
||||||
initialEventPixelOffset: undefined,
|
initialEventPixelOffset: undefined,
|
||||||
page_type: PageTypes.RoomView,
|
page_type: PageTypes.RoomView,
|
||||||
thirdPartyInvite: room_info.third_party_invite,
|
thirdPartyInvite: roomInfo.third_party_invite,
|
||||||
roomOobData: room_info.oob_data,
|
roomOobData: roomInfo.oob_data,
|
||||||
currentRoomAlias: room_info.room_alias,
|
currentRoomAlias: roomInfo.room_alias,
|
||||||
autoJoin: room_info.auto_join,
|
autoJoin: roomInfo.auto_join,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!room_info.room_alias) {
|
if (!roomInfo.room_alias) {
|
||||||
newState.currentRoomId = room_info.room_id;
|
newState.currentRoomId = roomInfo.room_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if we aren't given an explicit event id, look for one in the
|
// if we aren't given an explicit event id, look for one in the
|
||||||
// scrollStateMap.
|
// scrollStateMap.
|
||||||
//
|
//
|
||||||
// TODO: do this in RoomView rather than here
|
// TODO: do this in RoomView rather than here
|
||||||
if (!room_info.event_id && this.refs.loggedInView) {
|
if (!roomInfo.event_id && this.refs.loggedInView) {
|
||||||
const scrollState = this.refs.loggedInView.getScrollStateForRoom(room_info.room_id);
|
const scrollState = this.refs.loggedInView.getScrollStateForRoom(roomInfo.room_id);
|
||||||
if (scrollState) {
|
if (scrollState) {
|
||||||
newState.initialEventId = scrollState.focussedEvent;
|
newState.initialEventId = scrollState.focussedEvent;
|
||||||
newState.initialEventPixelOffset = scrollState.pixelOffset;
|
newState.initialEventPixelOffset = scrollState.pixelOffset;
|
||||||
|
@ -628,15 +628,15 @@ module.exports = React.createClass({
|
||||||
let waitFor = q(null);
|
let waitFor = q(null);
|
||||||
if (!this.firstSyncComplete) {
|
if (!this.firstSyncComplete) {
|
||||||
if (!this.firstSyncPromise) {
|
if (!this.firstSyncPromise) {
|
||||||
console.warn('Cannot view a room before first sync. room_id:', room_info.room_id);
|
console.warn('Cannot view a room before first sync. room_id:', roomInfo.room_id);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
waitFor = this.firstSyncPromise.promise;
|
waitFor = this.firstSyncPromise.promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
waitFor.done(() => {
|
waitFor.done(() => {
|
||||||
let presentedId = room_info.room_alias || room_info.room_id;
|
let presentedId = roomInfo.room_alias || roomInfo.room_id;
|
||||||
const room = MatrixClientPeg.get().getRoom(room_info.room_id);
|
const room = MatrixClientPeg.get().getRoom(roomInfo.room_id);
|
||||||
if (room) {
|
if (room) {
|
||||||
const theAlias = Rooms.getDisplayAliasForRoom(room);
|
const theAlias = Rooms.getDisplayAliasForRoom(room);
|
||||||
if (theAlias) presentedId = theAlias;
|
if (theAlias) presentedId = theAlias;
|
||||||
|
@ -648,8 +648,8 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (room_info.event_id) {
|
if (roomInfo.event_id) {
|
||||||
presentedId += "/" + room_info.event_id;
|
presentedId += "/" + roomInfo.event_id;
|
||||||
}
|
}
|
||||||
this.notifyNewScreen('room/' + presentedId);
|
this.notifyNewScreen('room/' + presentedId);
|
||||||
newState.ready = true;
|
newState.ready = true;
|
||||||
|
@ -663,7 +663,7 @@ module.exports = React.createClass({
|
||||||
title: _t('Start a chat'),
|
title: _t('Start a chat'),
|
||||||
description: _t("Who would you like to communicate with?"),
|
description: _t("Who would you like to communicate with?"),
|
||||||
placeholder: _t("Email, name or matrix ID"),
|
placeholder: _t("Email, name or matrix ID"),
|
||||||
button: _t("Start Chat")
|
button: _t("Start Chat"),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -481,7 +481,7 @@ module.exports = WithMatrixClient(React.createClass({
|
||||||
}
|
}
|
||||||
|
|
||||||
const editButton = (
|
const editButton = (
|
||||||
<span className="mx_EventTile_editButton" title="Options" onClick={this.onEditClicked} />
|
<span className="mx_EventTile_editButton" title={ _t("Options") } onClick={this.onEditClicked} />
|
||||||
);
|
);
|
||||||
let e2e;
|
let e2e;
|
||||||
// cosmetic padlocks:
|
// cosmetic padlocks:
|
||||||
|
|
|
@ -37,7 +37,7 @@ module.exports = React.createClass({
|
||||||
<img src="img/scrollto.svg" width="24" height="24"
|
<img src="img/scrollto.svg" width="24" height="24"
|
||||||
alt={ _t('Scroll to unread messages') }
|
alt={ _t('Scroll to unread messages') }
|
||||||
title={ _t('Scroll to unread messages') }/>
|
title={ _t('Scroll to unread messages') }/>
|
||||||
Jump to first unread message.
|
{ _t("Jump to first unread message.") }
|
||||||
</div>
|
</div>
|
||||||
<img className="mx_TopUnreadMessagesBar_close mx_filterFlipColor"
|
<img className="mx_TopUnreadMessagesBar_close mx_filterFlipColor"
|
||||||
src="img/cancel.svg" width="18" height="18"
|
src="img/cancel.svg" width="18" height="18"
|
||||||
|
|
|
@ -315,6 +315,7 @@
|
||||||
"joined": "joined",
|
"joined": "joined",
|
||||||
"%(targetName)s joined the room.": "%(targetName)s joined the room.",
|
"%(targetName)s joined the room.": "%(targetName)s joined the room.",
|
||||||
"Joins room with given alias": "Joins room with given alias",
|
"Joins room with given alias": "Joins room with given alias",
|
||||||
|
"Jump to first unread message.": "Jump to first unread message.",
|
||||||
"%(senderName)s kicked %(targetName)s.": "%(senderName)s kicked %(targetName)s.",
|
"%(senderName)s kicked %(targetName)s.": "%(senderName)s kicked %(targetName)s.",
|
||||||
"Kick": "Kick",
|
"Kick": "Kick",
|
||||||
"Kicks user with given id": "Kicks user with given id",
|
"Kicks user with given id": "Kicks user with given id",
|
||||||
|
@ -679,6 +680,7 @@
|
||||||
"Desktop specific": "Desktop specific",
|
"Desktop specific": "Desktop specific",
|
||||||
"Analytics": "Analytics",
|
"Analytics": "Analytics",
|
||||||
"Opt out of analytics": "Opt out of analytics",
|
"Opt out of analytics": "Opt out of analytics",
|
||||||
|
"Options": "Options",
|
||||||
"Riot collects anonymous analytics to allow us to improve the application.": "Riot collects anonymous analytics to allow us to improve the application.",
|
"Riot collects anonymous analytics to allow us to improve the application.": "Riot collects anonymous analytics to allow us to improve the application.",
|
||||||
"Please select the destination room for this message": "Please select the destination room for this message",
|
"Please select the destination room for this message": "Please select the destination room for this message",
|
||||||
"Passphrases must match": "Passphrases must match",
|
"Passphrases must match": "Passphrases must match",
|
||||||
|
|
|
@ -605,6 +605,7 @@
|
||||||
"'%(alias)s' is not a valid format for an address": "'%(alias)s' não é um formato válido para um endereço",
|
"'%(alias)s' is not a valid format for an address": "'%(alias)s' não é um formato válido para um endereço",
|
||||||
"'%(alias)s' is not a valid format for an alias": "'%(alias)s' não é um formato válido para um alias",
|
"'%(alias)s' is not a valid format for an alias": "'%(alias)s' não é um formato válido para um alias",
|
||||||
"Join Room": "Ingressar na sala",
|
"Join Room": "Ingressar na sala",
|
||||||
|
"Jump to first unread message.": "Ir diretamente para a primeira das mensagens não lidas.",
|
||||||
"Kick": "Remover",
|
"Kick": "Remover",
|
||||||
"Level": "Nível",
|
"Level": "Nível",
|
||||||
"Local addresses for this room:": "Endereço local desta sala:",
|
"Local addresses for this room:": "Endereço local desta sala:",
|
||||||
|
@ -728,6 +729,7 @@
|
||||||
"%(senderDisplayName)s removed the room name.": "%(senderDisplayName)s apagou o nome da sala.",
|
"%(senderDisplayName)s removed the room name.": "%(senderDisplayName)s apagou o nome da sala.",
|
||||||
"Analytics": "Análise",
|
"Analytics": "Análise",
|
||||||
"Opt out of analytics": "Sair da ferramenta de análise",
|
"Opt out of analytics": "Sair da ferramenta de análise",
|
||||||
|
"Options": "Opções",
|
||||||
"Riot collects anonymous analytics to allow us to improve the application.": "Riot coleta informações anônimas de uso para nos permitir melhorar o sistema.",
|
"Riot collects anonymous analytics to allow us to improve the application.": "Riot coleta informações anônimas de uso para nos permitir melhorar o sistema.",
|
||||||
"Passphrases must match": "As senhas têm que ser iguais",
|
"Passphrases must match": "As senhas têm que ser iguais",
|
||||||
"Passphrase must not be empty": "A senha não pode estar vazia",
|
"Passphrase must not be empty": "A senha não pode estar vazia",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue