Update Backbone types: attributes is T - and fix failing type checks
This commit is contained in:
parent
c65a7d0a14
commit
b8234765bf
11 changed files with 57 additions and 24 deletions
|
@ -358,6 +358,12 @@ export async function getPreJoinGroupInfo(
|
|||
export function buildGroupLink(conversation: ConversationModel): string {
|
||||
const { masterKey, groupInviteLinkPassword } = conversation.attributes;
|
||||
|
||||
strictAssert(masterKey, 'buildGroupLink requires the master key!');
|
||||
strictAssert(
|
||||
groupInviteLinkPassword,
|
||||
'buildGroupLink requires the groupInviteLinkPassword!'
|
||||
);
|
||||
|
||||
const bytes = Proto.GroupInviteLink.encode({
|
||||
v1Contents: {
|
||||
groupMasterKey: Bytes.fromBase64(masterKey),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue