diff --git a/ts/components/conversation/ConversationHeader.tsx b/ts/components/conversation/ConversationHeader.tsx
index 8aff94d87..13b80068b 100644
--- a/ts/components/conversation/ConversationHeader.tsx
+++ b/ts/components/conversation/ConversationHeader.tsx
@@ -75,8 +75,6 @@ interface Props {
onDeleteSelectedMessages: () => void;
onShowSafetyNumber: () => void;
- onShowAllMedia: () => void;
- onShowGroupMembers: () => void;
onGoBack: () => void;
onBlockUser: () => void;
@@ -421,7 +419,6 @@ class ConversationHeader extends React.Component
{
isRss,
onResetSession,
onSetDisappearingMessages,
- onShowGroupMembers,
onShowSafetyNumber,
timerOptions,
onBlockUser,
@@ -437,13 +434,6 @@ class ConversationHeader extends React.Component {
onSetDisappearingMessages,
i18n
);
- const showMembersMenuItem = Menu.getShowMemberMenuItem(
- isPublic,
- isRss,
- isGroup,
- onShowGroupMembers,
- i18n
- );
const showSafetyNumberMenuItem = Menu.getShowSafetyNumberMenuItem(
isPublic,
@@ -473,7 +463,6 @@ class ConversationHeader extends React.Component {
return (
{disappearingMessagesMenuItem}
- {showMembersMenuItem}
{showSafetyNumberMenuItem}
{resetSessionMenuItem}
{blockHandlerMenuItem}
diff --git a/ts/components/session/conversation/SessionCompositionBox.tsx b/ts/components/session/conversation/SessionCompositionBox.tsx
index 610077faf..8bbe7048d 100644
--- a/ts/components/session/conversation/SessionCompositionBox.tsx
+++ b/ts/components/session/conversation/SessionCompositionBox.tsx
@@ -208,7 +208,6 @@ export class SessionCompositionBox extends React.Component {
diff --git a/ts/components/session/conversation/SessionConversation.tsx b/ts/components/session/conversation/SessionConversation.tsx
index c926267a6..7b5785bc6 100644
--- a/ts/components/session/conversation/SessionConversation.tsx
+++ b/ts/components/session/conversation/SessionConversation.tsx
@@ -535,16 +535,9 @@ export class SessionConversation extends React.Component {
this.setState({ infoViewState: undefined });
},
- onShowAllMedia: async () => {
- conversation.updateHeader();
- },
onUpdateGroupName: () => {
conversation.onUpdateGroupName();
},
- onShowGroupMembers: async () => {
- window.Whisper.events.trigger('updateGroupMembers', conversation);
- conversation.updateHeader();
- },
onBlockUser: () => {
conversation.block();
@@ -590,6 +583,9 @@ export class SessionConversation extends React.Component {
const ourPK = window.textsecure.storage.user.getNumber();
const members = conversation.get('members') || [];
+ const isAdmin = conversation.isMediumGroup()
+ ? true
+ : conversation.get('groupAdmins').includes(ourPK);
return {
id: conversation.id,
@@ -603,7 +599,7 @@ export class SessionConversation extends React.Component {
isKickedFromGroup: conversation.attributes.isKickedFromGroup,
isGroup: !conversation.isPrivate(),
isPublic: conversation.isPublic(),
- isAdmin: conversation.get('groupAdmins').includes(ourPK),
+ isAdmin,
isRss: conversation.isRss(),
isBlocked: conversation.isBlocked(),
@@ -612,8 +608,13 @@ export class SessionConversation extends React.Component {
value: item.get('seconds'),
})),
- onSetDisappearingMessages: (seconds: any) =>
- conversation.setDisappearingMessages(seconds),
+ onSetDisappearingMessages: (seconds: any) => {
+ if (seconds > 0) {
+ conversation.updateExpirationTimer(seconds);
+ } else {
+ conversation.updateExpirationTimer(null);
+ }
+ },
onGoBack: () => {
this.toggleGroupSettingsPane();
@@ -626,8 +627,7 @@ export class SessionConversation extends React.Component {
window.Whisper.events.trigger('updateGroupMembers', conversation);
},
onInviteContacts: () => {
- // VINCE TODO: Inviting contacts ⚡️
- return;
+ window.Whisper.events.trigger('inviteContacts', conversation);
},
onLeaveGroup: () => {
window.Whisper.events.trigger('leaveGroup', conversation);
@@ -872,10 +872,10 @@ export class SessionConversation extends React.Component {
// If removable from server, we "Unsend" - otherwise "Delete"
const pluralSuffix = multiple ? 's' : '';
const title = window.i18n(
- isPublic ? `unsendMessage${pluralSuffix}` : `deleteMessage${pluralSuffix}`
+ isServerDeletable ? `deleteMessage${pluralSuffix}ForEveryone` : `deleteMessage${pluralSuffix}`
);
- const okText = window.i18n(isServerDeletable ? 'unsend' : 'delete');
+ const okText = window.i18n(isServerDeletable ? 'deleteForEveryone' : 'delete');
window.confirmationDialog({
title,
diff --git a/ts/components/session/conversation/SessionRecording.tsx b/ts/components/session/conversation/SessionRecording.tsx
index 16bdade78..7556832d8 100644
--- a/ts/components/session/conversation/SessionRecording.tsx
+++ b/ts/components/session/conversation/SessionRecording.tsx
@@ -207,7 +207,6 @@ export class SessionRecording extends React.Component {
)}
@@ -250,7 +249,6 @@ export class SessionRecording extends React.Component {