Fix storage of joinedAtVersion in groups
This commit is contained in:
parent
88c56c96d1
commit
d3b5960528
1 changed files with 3 additions and 3 deletions
|
@ -5566,7 +5566,7 @@ async function applyGroupState({
|
||||||
|
|
||||||
return {
|
return {
|
||||||
role: member.role || MEMBER_ROLE_ENUM.DEFAULT,
|
role: member.role || MEMBER_ROLE_ENUM.DEFAULT,
|
||||||
joinedAtVersion: member.joinedAtVersion || version,
|
joinedAtVersion: member.joinedAtVersion,
|
||||||
aci: member.userId,
|
aci: member.userId,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
@ -6665,7 +6665,7 @@ type DecryptedMember = Readonly<{
|
||||||
userId: AciString;
|
userId: AciString;
|
||||||
profileKey: Uint8Array;
|
profileKey: Uint8Array;
|
||||||
role: Proto.Member.Role;
|
role: Proto.Member.Role;
|
||||||
joinedAtVersion?: number;
|
joinedAtVersion: number;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
function decryptMember(
|
function decryptMember(
|
||||||
|
@ -6716,7 +6716,7 @@ function decryptMember(
|
||||||
userId,
|
userId,
|
||||||
profileKey,
|
profileKey,
|
||||||
role,
|
role,
|
||||||
joinedAtVersion: dropNull(member.joinedAtVersion),
|
joinedAtVersion: dropNull(member.joinedAtVersion) ?? 0,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue