Undo-ing "turn into object" does not delete created Object

Describe the bug
When I turn a block into an Object and then undo that action, the created block is not deleted.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new or open an existing Object
  2. Add a piece of text
  3. Use the quick menu to turn that block into an Object
  4. Open the created Object and edit it (just to see that this indeed is your Object in a later step, this edit does not influence the bug)
  5. Go back to the original Object and use ctrl-z or the elipsis menu to undo the action (of turning your Block into an Object)
  6. Search for your new Object and see it still exists (with your edit to verify you are seeing the right Object)

Expected behavior
To be honest, I’m not sure whether I would prefer the new Object to be deleted in this scenario, but not known this still exist after the undo is also not great.

System Information:

  • OS: Windows 11
  • Device Manufacturer/Model: Dell XPS 15
  • Anytype Version: 0.26.1

Additional context
None

@sambouwer Thank you! Added to tasks tracker

We will consider fixing this as part of multi-window support since there this behaviour may be considered as bug though this was originally intended.

Still a problem. But there’s still no multi-window (if it’s tabs?), so still waiting for that maybe?