[Bug] Appflowy keeping showing deleted calendars/boards/grid
Bug Description
Self-explanatory title
How to Reproduce
Create two calendars, delete one, clear the cache, and open the box to reference the calendars in a note
Expected Behavior
Don't show deleted calendars/grids/boards
Operating System
LINUX MINT XFCE 21.2
AppFlowy Version(s)
0.6.4
Screenshots
Additional Context
No response
There're two potential issues:
- update the recent views list when deleting an exisiting view.
- refer to https://github.com/AppFlowy-IO/AppFlowy/issues/5754
The second one requires that we send all view ids from Collab in the folder observer. (See https://github.com/AppFlowy-IO/AppFlowy-Collab/blob/93ec9a38722d5ed0628e6d03a161e2de172967f3/collab-folder/src/folder_observe.rs#L104)
And the first one requires that we setup a listener and make sure all events are accounted for, another solution is simply refetching the recent views on deletions, but I'm not a fan.