Merge branch 'clearnet' of https://github.com/loki-project/loki-messenger into tls-fix

pull/787/head
Ryan Tharp 5 years ago
commit 8aa7682bc4

@ -1994,7 +1994,8 @@
"Shown in the conversation history when someone updates the group"
},
"titleIsNow": {
"message": "Group name has been set to '$name$'.",
"comment": "Do not add a period here, used as a fragment and will break unit test",
"message": "Group name has been set to '$name$'",
"description":
"Shown in the conversation history when someone changes the title of the group",
"placeholders": {

@ -49,7 +49,7 @@ export class GroupNotification extends React.Component<Props> {
switch (type) {
case 'name':
return i18n('titleIsNow', [newName || '']);
return `${i18n('titleIsNow', [newName || ''])}.`;
case 'add':
if (!contacts || !contacts.length) {
throw new Error('Group update is missing contacts');

@ -61,7 +61,7 @@ export class SessionClosableOverlay extends React.Component<Props, State> {
});
}
const friends = conversationList.map((d: any) => {
return conversationList.map((d: any) => {
const lokiProfile = d.getLokiProfile();
const name = lokiProfile ? lokiProfile.displayName : 'Anonymous';
@ -79,8 +79,6 @@ export class SessionClosableOverlay extends React.Component<Props, State> {
existingMember,
};
});
return friends;
}
// tslint:disable-next-line max-func-body-length */
@ -137,7 +135,6 @@ export class SessionClosableOverlay extends React.Component<Props, State> {
placeholder = window.i18n('createClosedGroupPlaceholder');
break;
default:
break;
}
const { groupName, selectedMembers } = this.state;
@ -251,7 +248,7 @@ export class SessionClosableOverlay extends React.Component<Props, State> {
private renderMemberList() {
const members = this.getContacts();
const memberList = members.map((member: ContactType) => (
return members.map((member: ContactType) => (
<SessionMemberListItem
member={member}
isSelected={false}
@ -263,8 +260,6 @@ export class SessionClosableOverlay extends React.Component<Props, State> {
}}
/>
));
return memberList;
}
private handleSelectMember(member: ContactType) {

Loading…
Cancel
Save