Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various bugfixes: #2105

Merged
merged 1 commit into from
Jun 21, 2024
Merged

Various bugfixes: #2105

merged 1 commit into from
Jun 21, 2024

Conversation

corrideat
Copy link
Member

@corrideat corrideat commented Jun 21, 2024

- Comments explaining retain / release logic
- Fix #2093
- Fix #2066 (potentially)
@corrideat corrideat requested a review from taoeffect June 21, 2024 19:16
Copy link

cypress bot commented Jun 21, 2024

Passing run #2452 ↗︎

0 111 8 0 Flakiness 0

Details:

Merge f37b1ec into 776ecdb...
Project: group-income Commit: ad8786ed4d ℹ️
Status: Passed Duration: 09:50 💡
Started: Jun 21, 2024 7:17 PM Ended: Jun 21, 2024 7:27 PM

Review all test suite changes for PR #2105 ↗︎

Copy link
Member

@taoeffect taoeffect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice comments!

Comment on lines -1771 to -1787
encryptionKeyId,
...actorID === memberID && {
hooks: {
postpublish: () => {
sbp('chelonia/contract/retain', chatRoomID)
}
}
}
encryptionKeyId
}).catch(e => {
if (e.name === 'GIErrorUIRuntimeError' && e.cause?.name === 'GIChatroomAlreadyMemberError') {
if (actorID === memberID) {
// Increase reference count if we've already joined
// Note: this addresses syncing the contract from a new device,
// where `retain` in postpublish hasn't been called and the
// reference count is zero due to the state being fresh.
sbp('chelonia/contract/retain', chatRoomID)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice simplification!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError in internals related to OP_KEYSHARE
2 participants