;
- } else if (this.props.isInvite) {
+ } else if (this.props.isInvite && this.props.list.length) {
// no notifications but highlight anyway because this is an invite badge
- badge =
!
;
+ badge =
{this.props.list.length}
;
}
}
diff --git a/src/components/structures/TopLeftMenuButton.js b/src/components/structures/TopLeftMenuButton.js
index 592b64634f..601fb2e654 100644
--- a/src/components/structures/TopLeftMenuButton.js
+++ b/src/components/structures/TopLeftMenuButton.js
@@ -22,6 +22,7 @@ import AccessibleButton from '../views/elements/AccessibleButton';
import BaseAvatar from '../views/avatars/BaseAvatar';
import MatrixClientPeg from '../../MatrixClientPeg';
import Avatar from '../../Avatar';
+import { _t } from '../../languageHandler';
const AVATAR_SIZE = 28;
@@ -70,7 +71,14 @@ export default class TopLeftMenuButton extends React.Component {
render() {
const fallbackUserId = MatrixClientPeg.get().getUserId();
const profileInfo = this.state.profileInfo;
- const name = profileInfo ? profileInfo.name : fallbackUserId;
+ let name;
+ if (MatrixClientPeg.get().isGuest()) {
+ name = _t("Guest");
+ } else if (profileInfo) {
+ name = profileInfo.name;
+ } else {
+ name = fallbackUserId;
+ }
let nameElement;
if (!this.props.collapsed) {
nameElement =
;
}
diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js
index 44fb14476a..c6d70c4cd5 100644
--- a/src/components/views/rooms/RoomList.js
+++ b/src/components/views/rooms/RoomList.js
@@ -83,7 +83,7 @@ module.exports = React.createClass({
this._layoutSections = [];
const unfilteredOptions = {
- allowWhitespace: true,
+ allowWhitespace: false,
handleHeight: 1,
};
this._unfilteredlayout = new Layout((key, size) => {
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index 4ae95f7559..89be104e41 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -430,9 +430,9 @@
"Upload profile picture": "Upload profile picture",
"Display Name": "Display Name",
"Save": "Save",
+ "Flair": "Flair",
"General": "General",
"Room Addresses": "Room Addresses",
- "Flair": "Flair",
"URL Previews": "URL Previews",
"Failed to change password. Is your password correct?": "Failed to change password. Is your password correct?",
"Success": "Success",
@@ -823,8 +823,6 @@
"Failed to load group members": "Failed to load group members",
"Filter community members": "Filter community members",
"Invite to this community": "Invite to this community",
- "Flair will appear if enabled in room settings": "Flair will appear if enabled in room settings",
- "Flair will not appear": "Flair will not appear",
"Are you sure you want to remove '%(roomName)s' from %(groupId)s?": "Are you sure you want to remove '%(roomName)s' from %(groupId)s?",
"Removing a room from the community will also remove it from the community page.": "Removing a room from the community will also remove it from the community page.",
"Failed to remove room from community": "Failed to remove room from community",
@@ -1339,6 +1337,7 @@
"Tried to load a specific point in this room's timeline, but you do not have permission to view the message in question.": "Tried to load a specific point in this room's timeline, but you do not have permission to view the message in question.",
"Tried to load a specific point in this room's timeline, but was unable to find it.": "Tried to load a specific point in this room's timeline, but was unable to find it.",
"Failed to load timeline position": "Failed to load timeline position",
+ "Guest": "Guest",
"Uploading %(filename)s and %(count)s others|other": "Uploading %(filename)s and %(count)s others",
"Uploading %(filename)s and %(count)s others|zero": "Uploading %(filename)s",
"Uploading %(filename)s and %(count)s others|one": "Uploading %(filename)s and %(count)s other",