You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PerAccountStore shouldn't be an owner of the MessageListView elements.
Its relationship to MessageListView is similar to that of
AutocompleteViewManager to MentionAutocompleteView (zulip#645).
With two owners, the MessageListView can be disposed twice:
1. before the frame is rendered, `removeAccount` disposes the
`PerAccountStoreWidget`, which disposes the `MessageListView`;
`_MessageListState` is not yet disposed;
2. during build, because `store` is set to `null`,
`PerAccountStoreWidget` gets rebuilt. `_MessageListState`,
a descendent of it, is no longer in the render tree;
3. during finalization, `_MessageListState` tries to dispose the
`MessageListView`.
This removes regression tests added for zulip#810, because
`MessageStoreImpl.dispose` no longer exists. `MessageListView` does not
get disposed unless there is a `_MessageListState` owner.
Signed-off-by: Zixuan James Li <[email protected]>
0 commit comments