File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,6 @@ class PerAccountStore extends ChangeNotifier with StreamStore {
241
241
242
242
// TODO lots more data. When adding, be sure to update handleEvent too.
243
243
244
- // TODO call [RecentDmConversationsView.dispose] in [dispose]
245
244
final RecentDmConversationsView recentDmConversationsView;
246
245
247
246
final Set <MessageListView > _messageListViews = {};
@@ -269,6 +268,16 @@ class PerAccountStore extends ChangeNotifier with StreamStore {
269
268
autocompleteViewManager.reassemble ();
270
269
}
271
270
271
+ @override
272
+ void dispose () {
273
+ unreads.dispose ();
274
+ recentDmConversationsView.dispose ();
275
+ for (final view in _messageListViews.toList ()) {
276
+ view.dispose ();
277
+ }
278
+ super .dispose ();
279
+ }
280
+
272
281
void handleEvent (Event event) {
273
282
if (event is HeartbeatEvent ) {
274
283
assert (debugLog ("server event: heartbeat" ));
You can’t perform that action at this time.
0 commit comments