Skip to content

Commit

Permalink
fix variable name and a string
Browse files Browse the repository at this point in the history
  • Loading branch information
ericrosenthal committed Apr 16, 2019
1 parent 28fe4c4 commit 1951c11
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/rocketchat-i18n/i18n/es.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -1428,7 +1428,7 @@
"invisible": "invisible",
"Invisible": "Invisible",
"Invitation": "Invitación",
"Invitation_Email_Default":"Hola, un amigo [Username] lo ha invitado a chatear en [Site_Name]. Haga clic en [Invite_Link] para responder.",
"Invitation_Email_Default":"Hola, su amigo [Username] lo ha invitado a chatear en [Site_Name]. Haga clic en [Invite_Link] para responder.",
"Invitation_Email_Description": "Es posible utilizar los siguientes marcadores: <br/><ul><li> [email] para el correo electrónico del destinatario. </li><li> [Site_Name] y [Site_URL] para el nombre de la aplicación y la URL, respectivamente. [Invite_Link] para el enlace dinámico de Invitación, y [Username] para el usuario que envía la invitación.</li></ul>",
"Invitation_Subject": "Invitation Subject",
"Invitation_Subject_Default": "Invitación al chat de su amigo [Username] en [Site_Name]",
Expand Down
8 changes: 4 additions & 4 deletions packages/rocketchat-lib/server/methods/sendInvitationEmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ Meteor.methods({
}
const validEmails = emails.filter(Mailer.checkAddressFormat);

let invitee;
let inviter;
if (!realname) {
invitee = Meteor.user().username;
inviter = Meteor.user().username;
} else {
invitee = realname;
inviter = realname;
}

const subject = RocketChat.settings.get('Invitation_Subject');
Expand All @@ -42,7 +42,7 @@ Meteor.methods({
data: {
email,
Invite_Link:Meteor.runAsUser(Meteor.userId(), () => Meteor.call('getInviteLink')),
Username:invitee,
Username:inviter,
Avatar_Link:`${ RocketChat.settings.get('Site_Url').slice(0, -1) }${ getAvatarUrlFromUsername(Meteor.user().username) }`,
},
lng: language,
Expand Down
8 changes: 4 additions & 4 deletions packages/rocketchat-lib/server/methods/sendInvitationSMS.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ Meteor.methods({
}));
const user = Meteor.user();

let invitee;
let inviter;
if (!realname) {
invitee = user.username;
inviter = user.username;
} else {
invitee = realname;
inviter = realname;
}

let body;
Expand All @@ -61,7 +61,7 @@ Meteor.methods({
lng,
});
}
body = RocketChat.placeholders.replace(body, { name:invitee });
body = RocketChat.placeholders.replace(body, { name:inviter });
validPhones.forEach((phone) => {
try {
twilioService.send(messageFrom, phone, body);
Expand Down

0 comments on commit 1951c11

Please sign in to comment.