- { joinBlock }
- { previewBlock }
+
+
+ { titleElement }
+ { subTitleElements }
+
+
+ { secondaryButton }
+ { primaryButton }
);
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index d0f265e430..2b50fd9ad3 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -601,7 +601,7 @@
"This room is not accessible by remote Matrix servers": "This room is not accessible by remote Matrix servers",
"Upgrade this room to the recommended room version": "Upgrade this room to the recommended room version",
"this room": "this room",
- "View older messages in %(roomName)s": "View older messages in %(roomName)s",
+ "View older messages in %(roomName)s.": "View older messages in %(roomName)s.",
"Room information": "Room information",
"Internal room ID:": "Internal room ID:",
"Room version": "Room version",
@@ -792,25 +792,36 @@
"Low priority": "Low priority",
"Historical": "Historical",
"System Alerts": "System Alerts",
- "Joining room...": "Joining room...",
- "Unable to ascertain that the address this invite was sent to matches one associated with your account.": "Unable to ascertain that the address this invite was sent to matches one associated with your account.",
- "This invitation was sent to an email address which is not associated with this account:": "This invitation was sent to an email address which is not associated with this account:",
- "You may wish to login with a different account, or add this email to this account.": "You may wish to login with a different account, or add this email to this account.",
- "You have been invited to join this room by %(inviterName)s": "You have been invited to join this room by %(inviterName)s",
- "Would you like to
accept or
decline this invitation?": "Would you like to
accept or
decline this invitation?",
- "Reason: %(reasonText)s": "Reason: %(reasonText)s",
- "Rejoin": "Rejoin",
- "You have been kicked from %(roomName)s by %(userName)s.": "You have been kicked from %(roomName)s by %(userName)s.",
- "You have been kicked from this room by %(userName)s.": "You have been kicked from this room by %(userName)s.",
- "You have been banned from %(roomName)s by %(userName)s.": "You have been banned from %(roomName)s by %(userName)s.",
- "You have been banned from this room by %(userName)s.": "You have been banned from this room by %(userName)s.",
"This room": "This room",
+ "Joining room …": "Joining room …",
+ "Loading …": "Loading …",
+ "Rejecting invite …": "Rejecting invite …",
+ "Join the conversation with an account": "Join the conversation with an account",
+ "Sign Up": "Sign Up",
+ "Sign In": "Sign In",
+ "You were kicked from %(roomName)s by %(memberName)s": "You were kicked from %(roomName)s by %(memberName)s",
+ "Reason: %(reason)s": "Reason: %(reason)s",
+ "Forget this room": "Forget this room",
+ "Re-join": "Re-join",
+ "You were banned from %(roomName)s by %(memberName)s": "You were banned from %(roomName)s by %(memberName)s",
+ "Something went wrong with your invite to this room": "Something went wrong with your invite to this room",
+ "%(errcode)s was returned while trying to valide your invite. You could try to pass this information on to a room admin.": "%(errcode)s was returned while trying to valide your invite. You could try to pass this information on to a room admin.",
+ "You can only join it with a working invite.": "You can only join it with a working invite.",
+ "You can still join it because this is a public room.": "You can still join it because this is a public room.",
+ "Join the discussion": "Join the discussion",
+ "Try to join anyway": "Try to join anyway",
+ "The room invite wasn't sent to your account": "The room invite wasn't sent to your account",
+ "Sign in with a different account, ask for another invite, or add the e-mail address %(email)s to this account.": "Sign in with a different account, ask for another invite, or add the e-mail address %(email)s to this account.",
+ "Do you want to join this room?": "Do you want to join this room?",
+ "
invited you": "
invited you",
+ "Reject": "Reject",
+ "You're previewing this room. Want to join it?": "You're previewing this room. Want to join it?",
+ "%(roomName)s can't be previewed. Do you want to join it?": "%(roomName)s can't be previewed. Do you want to join it?",
"%(roomName)s does not exist.": "%(roomName)s does not exist.",
+ "This room doesn't exist. Are you sure you're at the right place?": "This room doesn't exist. Are you sure you're at the right place?",
"%(roomName)s is not accessible at this time.": "%(roomName)s is not accessible at this time.",
- "You are trying to access %(roomName)s.": "You are trying to access %(roomName)s.",
- "You are trying to access a room.": "You are trying to access a room.",
- "
Click here to join the discussion!": "
Click here to join the discussion!",
- "This is a preview of this room. Room interactions have been disabled": "This is a preview of this room. Room interactions have been disabled",
+ "Try again later, or ask a room admin to check if you have access.": "Try again later, or ask a room admin to check if you have access.",
+ "%(errcode)s was returned while trying to access the room. If you think you're seeing this message in error, please
submit a bug report.": "%(errcode)s was returned while trying to access the room. If you think you're seeing this message in error, please
submit a bug report.",
"Use Key Backup": "Use Key Backup",
"Never lose encrypted messages": "Never lose encrypted messages",
"Messages in this room are secured with end-to-end encryption. Only you and the recipient(s) have the keys to read these messages.": "Messages in this room are secured with end-to-end encryption. Only you and the recipient(s) have the keys to read these messages.",
@@ -1245,7 +1256,6 @@
"Reject invitation": "Reject invitation",
"Are you sure you want to reject the invitation?": "Are you sure you want to reject the invitation?",
"Unable to reject invite": "Unable to reject invite",
- "Reject": "Reject",
"You cannot delete this message. (%(code)s)": "You cannot delete this message. (%(code)s)",
"Resend": "Resend",
"Cancel Sending": "Cancel Sending",
@@ -1279,7 +1289,6 @@
"Hide": "Hide",
"Home": "Home",
"Sign in": "Sign in",
- "Login": "Login",
"powered by Matrix": "powered by Matrix",
"This homeserver would like to make sure you are not a robot.": "This homeserver would like to make sure you are not a robot.",
"Custom Server Options": "Custom Server Options",
diff --git a/src/utils/FormattingUtils.js b/src/utils/FormattingUtils.js
index 435b33ac5d..b461d22079 100644
--- a/src/utils/FormattingUtils.js
+++ b/src/utils/FormattingUtils.js
@@ -58,3 +58,8 @@ export function hashCode(str) {
}
return Math.abs(hash);
}
+
+export function getUserNameColorClass(userId) {
+ const colorNumber = (hashCode(userId) % 8) + 1;
+ return `mx_Username_color${colorNumber}`;
+}