Fix broken Pending Invites screen
This commit is contained in:
parent
d2592de366
commit
6445a01f2a
3 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -2466,7 +2466,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);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue