Skip to content

Commit

Permalink
Fix broken Pending Invites screen
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Nonnenberg <scott@signal.org>
  • Loading branch information
automated-signal and scottnonnenberg-signal committed Nov 11, 2021
1 parent a76059e commit 90fc848
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { ConversationDetailsIcon, IconType } from './ConversationDetailsIcon';
export type PropsType = {
readonly conversation?: ConversationType;
readonly i18n: LocalizerType;
readonly ourUuid?: UUIDStringType;
readonly ourUuid: UUIDStringType;
readonly pendingApprovalMemberships: ReadonlyArray<GroupV2RequestingMembership>;
readonly pendingMemberships: ReadonlyArray<GroupV2PendingMembership>;
readonly approvePendingMembership: (conversationId: string) => void;
Expand Down
3 changes: 2 additions & 1 deletion ts/state/smart/PendingInvites.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ import {
} from '../selectors/conversations';
import { getGroupMemberships } from '../../util/getGroupMemberships';
import { assert } from '../../util/assert';
import type { UUIDStringType } from '../../types/UUID';

export type SmartPendingInvitesProps = {
conversationId: string;
ourConversationId?: string;
ourUuid: UUIDStringType;
readonly approvePendingMembership: (conversationid: string) => void;
readonly revokePendingMemberships: (membershipIds: Array<string>) => void;
};
Expand Down
2 changes: 1 addition & 1 deletion ts/views/conversation_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2542,7 +2542,7 @@ export class ConversationView extends window.Backbone.View<ConversationModel> {
className: 'panel',
JSX: window.Signal.State.Roots.createPendingInvites(window.reduxStore, {
conversationId: this.model.id,
ourConversationId: window.ConversationController.getOurConversationId(),
ourUuid: window.textsecure.storage.user.getCheckedUuid().toString(),
approvePendingMembership: (conversationId: string) => {
this.model.approvePendingMembershipFromGroupV2(conversationId);
},
Expand Down

0 comments on commit 90fc848

Please sign in to comment.