Group Description: Edit/Receive

This commit is contained in:
Scott Nonnenberg 2021-06-01 17:24:28 -07:00 committed by GitHub
parent e5d365dfc4
commit 9705f464be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 859 additions and 149 deletions

14
ts/textsecure.d.ts vendored
View file

@ -280,6 +280,7 @@ export declare class GroupClass {
membersPendingProfileKey?: Array<MemberPendingProfileKeyClass>;
membersPendingAdminApproval?: Array<MemberPendingAdminApprovalClass>;
inviteLinkPassword?: ProtoBinaryType;
descriptionBytes?: ProtoBinaryType;
}
export declare class GroupChangeClass {
@ -322,6 +323,7 @@ export declare namespace GroupChangeClass {
deleteMemberPendingAdminApprovals?: Array<GroupChangeClass.Actions.DeleteMemberPendingAdminApprovalAction>;
promoteMemberPendingAdminApprovals?: Array<GroupChangeClass.Actions.PromoteMemberPendingAdminApprovalAction>;
modifyInviteLinkPassword?: GroupChangeClass.Actions.ModifyInviteLinkPasswordAction;
modifyDescription?: GroupChangeClass.Actions.ModifyDescriptionAction;
}
}
@ -405,6 +407,10 @@ export declare namespace GroupChangeClass.Actions {
class ModifyInviteLinkPasswordAction {
inviteLinkPassword?: ProtoBinaryType;
}
class ModifyDescriptionAction {
descriptionBytes?: ProtoBinaryType;
}
}
export declare class GroupChangesClass {
@ -434,10 +440,15 @@ export declare class GroupAttributeBlobClass {
title?: string;
avatar?: ProtoBinaryType;
disappearingMessagesDuration?: number;
descriptionText?: string;
// Note: this isn't part of the proto, but our protobuf library tells us which
// field has been set with this prop.
content: 'title' | 'avatar' | 'disappearingMessagesDuration';
content:
| 'title'
| 'avatar'
| 'disappearingMessagesDuration'
| 'descriptionText';
}
export declare class GroupExternalCredentialClass {
@ -483,6 +494,7 @@ export declare class GroupJoinInfoClass {
addFromInviteLink?: AccessControlClass.AccessRequired;
version?: number;
pendingAdminApproval?: boolean;
descriptionBytes?: ProtoBinaryType;
}
// Previous protos