File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import 'autocomplete.dart';
21
21
import 'database.dart' ;
22
22
import 'message_list.dart' ;
23
23
import 'recent_dm_conversations.dart' ;
24
+ import 'recent_senders.dart' ;
24
25
import 'stream.dart' ;
25
26
import 'unreads.dart' ;
26
27
@@ -287,6 +288,8 @@ class PerAccountStore extends ChangeNotifier with StreamStore {
287
288
288
289
final Map <int , User > users;
289
290
291
+ final RecentSenders recentSenders = RecentSenders ();
292
+
290
293
////////////////////////////////
291
294
// Streams, topics, and stuff about them.
292
295
@@ -347,6 +350,7 @@ class PerAccountStore extends ChangeNotifier with StreamStore {
347
350
void dispose () {
348
351
unreads.dispose ();
349
352
recentDmConversationsView.dispose ();
353
+ recentSenders.clear ();
350
354
for (final view in _messageListViews.toList ()) {
351
355
view.dispose ();
352
356
}
@@ -436,6 +440,7 @@ class PerAccountStore extends ChangeNotifier with StreamStore {
436
440
notifyListeners ();
437
441
} else if (event is MessageEvent ) {
438
442
assert (debugLog ("server event: message ${jsonEncode (event .message .toJson ())}" ));
443
+ recentSenders.handleMessage (event.message);
439
444
recentDmConversationsView.handleMessageEvent (event);
440
445
autocompleteViewManager.handleMessageEvent (event);
441
446
for (final view in _messageListViews) {
You can’t perform that action at this time.
0 commit comments