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" "Shown in the conversation history when someone updates the group"
}, },
"titleIsNow": { "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": "description":
"Shown in the conversation history when someone changes the title of the group", "Shown in the conversation history when someone changes the title of the group",
"placeholders": { "placeholders": {

@ -49,7 +49,7 @@ export class GroupNotification extends React.Component<Props> {
switch (type) { switch (type) {
case 'name': case 'name':
return i18n('titleIsNow', [newName || '']); return `${i18n('titleIsNow', [newName || ''])}.`;
case 'add': case 'add':
if (!contacts || !contacts.length) { if (!contacts || !contacts.length) {
throw new Error('Group update is missing contacts'); 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 lokiProfile = d.getLokiProfile();
const name = lokiProfile ? lokiProfile.displayName : 'Anonymous'; const name = lokiProfile ? lokiProfile.displayName : 'Anonymous';
@ -79,8 +79,6 @@ export class SessionClosableOverlay extends React.Component<Props, State> {
existingMember, existingMember,
}; };
}); });
return friends;
} }
// tslint:disable-next-line max-func-body-length */ // tslint:disable-next-line max-func-body-length */
@ -137,7 +135,6 @@ export class SessionClosableOverlay extends React.Component<Props, State> {
placeholder = window.i18n('createClosedGroupPlaceholder'); placeholder = window.i18n('createClosedGroupPlaceholder');
break; break;
default: default:
break;
} }
const { groupName, selectedMembers } = this.state; const { groupName, selectedMembers } = this.state;
@ -251,7 +248,7 @@ export class SessionClosableOverlay extends React.Component<Props, State> {
private renderMemberList() { private renderMemberList() {
const members = this.getContacts(); const members = this.getContacts();
const memberList = members.map((member: ContactType) => ( return members.map((member: ContactType) => (
<SessionMemberListItem <SessionMemberListItem
member={member} member={member}
isSelected={false} isSelected={false}
@ -263,8 +260,6 @@ export class SessionClosableOverlay extends React.Component<Props, State> {
}} }}
/> />
)); ));
return memberList;
} }
private handleSelectMember(member: ContactType) { private handleSelectMember(member: ContactType) {

Loading…
Cancel
Save