Add new placeholders for e-mail to access invited address and medium type
This commit is contained in:
@@ -252,6 +252,8 @@ invite:
|
|||||||
# - %SENDER_ID% Matrix ID of the invitation sender
|
# - %SENDER_ID% Matrix ID of the invitation sender
|
||||||
# - %SENDER_NAME% Display name of the invitation sender, empty if not available
|
# - %SENDER_NAME% Display name of the invitation sender, empty if not available
|
||||||
# - %SENDER_NAME_OR_ID% Value of %SENDER_NAME% or, if empty, value of %SENDER_ID%
|
# - %SENDER_NAME_OR_ID% Value of %SENDER_NAME% or, if empty, value of %SENDER_ID%
|
||||||
|
# - %INVITE_MEDIUM% Medium of the invite (e.g. email, msisdn)
|
||||||
|
# - %INVITE_ADDRESS% Address used to invite
|
||||||
# - %ROOM_ID% ID of the room where the invitation took place
|
# - %ROOM_ID% ID of the room where the invitation took place
|
||||||
# - %ROOM_NAME% Name of the room, empty if not available
|
# - %ROOM_NAME% Name of the room, empty if not available
|
||||||
# - %ROOM_NAME_OR_ID% Value of %ROOM_NAME% or, if empty, value of %ROOM_ID%
|
# - %ROOM_NAME_OR_ID% Value of %ROOM_NAME% or, if empty, value of %ROOM_ID%
|
||||||
|
|||||||
@@ -104,6 +104,8 @@ public class EmailInviteSender implements IInviteSender {
|
|||||||
templateBody = templateBody.replace("%SENDER_ID%", invite.getInvite().getSender().getId());
|
templateBody = templateBody.replace("%SENDER_ID%", invite.getInvite().getSender().getId());
|
||||||
templateBody = templateBody.replace("%SENDER_NAME%", senderName);
|
templateBody = templateBody.replace("%SENDER_NAME%", senderName);
|
||||||
templateBody = templateBody.replace("%SENDER_NAME_OR_ID%", senderNameOrId);
|
templateBody = templateBody.replace("%SENDER_NAME_OR_ID%", senderNameOrId);
|
||||||
|
templateBody = templateBody.replace("%INVITE_MEDIUM%", invite.getInvite().getMedium());
|
||||||
|
templateBody = templateBody.replace("%INVITE_ADDRESS%", invite.getInvite().getAddress());
|
||||||
templateBody = templateBody.replace("%ROOM_ID%", invite.getInvite().getRoomId());
|
templateBody = templateBody.replace("%ROOM_ID%", invite.getInvite().getRoomId());
|
||||||
templateBody = templateBody.replace("%ROOM_NAME%", roomName);
|
templateBody = templateBody.replace("%ROOM_NAME%", roomName);
|
||||||
templateBody = templateBody.replace("%ROOM_NAME_OR_ID%", roomNameOrId);
|
templateBody = templateBody.replace("%ROOM_NAME_OR_ID%", roomNameOrId);
|
||||||
|
|||||||
@@ -12,6 +12,9 @@ Hi,
|
|||||||
%SENDER_NAME_OR_ID% has invited you into a room [%ROOM_NAME_OR_ID%] on
|
%SENDER_NAME_OR_ID% has invited you into a room [%ROOM_NAME_OR_ID%] on
|
||||||
Matrix. To join the conversation, register an account on http://%DOMAIN%
|
Matrix. To join the conversation, register an account on http://%DOMAIN%
|
||||||
|
|
||||||
|
You can also register an account on a public server, like Matrix.org, by going to
|
||||||
|
https://riot.im/app/#/register?%INVITE_MEDIUM%=%INVITE_ADDRESS%
|
||||||
|
|
||||||
|
|
||||||
About Matrix:
|
About Matrix:
|
||||||
|
|
||||||
@@ -69,6 +72,9 @@ pre, code {
|
|||||||
<p>%SENDER_NAME_OR_ID% has invited you into a room [%ROOM_NAME_OR_ID%] on
|
<p>%SENDER_NAME_OR_ID% has invited you into a room [%ROOM_NAME_OR_ID%] on
|
||||||
Matrix. To join the conversation, register an account on <a href="http://%DOMAIN%">%DOMAIN%</a>.</p>
|
Matrix. To join the conversation, register an account on <a href="http://%DOMAIN%">%DOMAIN%</a>.</p>
|
||||||
|
|
||||||
|
<p>You can also register an account on a public server, like Matrix.org, by following
|
||||||
|
<a href="https://riot.im/app/#/register?%INVITE_MEDIUM%=%INVITE_ADDRESS%">this link</a>.</p>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<p>About Matrix:</p>
|
<p>About Matrix:</p>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user