Skip to content

Conversation

@dawidreedsy
Copy link
Contributor

Similar case to:

however instead of submitting ops to doc is when we submit doc presence

};

var error = null;
if(this._doc._isInHardRollback) {
Copy link
Contributor Author

@dawidreedsy dawidreedsy Mar 6, 2025

Choose a reason for hiding this comment

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

I decided to not change _isInHardRollback to isInHardRollback as i think it should not be used out side of lib. Feels a bit code smell TBH. I am open for suggesstions.

Suggested change
if(this._doc._isInHardRollback) {
if(this._doc.isInHardRollback) {

 Similar case to:
 - #692

 however instead of submitting ops to doc is when we submit doc presence
@dawidreedsy dawidreedsy force-pushed the bug-fix/broken-presence-hardrollback branch from 0454722 to 0b16633 Compare March 6, 2025 09:56
@coveralls
Copy link

Coverage Status

coverage: 97.492% (+0.002%) from 97.49%
when pulling 0b16633 on bug-fix/broken-presence-hardrollback
into dc798a8 on master.

@dawidreedsy dawidreedsy changed the title 🐛 Unhandled rejection when submitting presence during hard rollback. 🐛 Wrong error when submitting presence during hard rollback. Mar 6, 2025
@dawidreedsy dawidreedsy merged commit 8cb6edb into master Mar 11, 2025
8 checks passed
@dawidreedsy dawidreedsy deleted the bug-fix/broken-presence-hardrollback branch March 11, 2025 16:11
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.

4 participants