File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import 'package:flutter/widgets.dart';
66import '../api/model/events.dart' ;
77import '../api/model/model.dart' ;
88import '../api/route/users.dart' ;
9- import 'realm .dart' ;
9+ import 'user .dart' ;
1010
1111/// The model for tracking which users are online, idle, and offline.
1212///
@@ -16,9 +16,9 @@ import 'realm.dart';
1616/// so callers need to remember to add a listener (and remove it on dispose).
1717/// In particular, [PerAccountStoreWidget] doesn't subscribe a widget subtree
1818/// to updates.
19- class Presence extends HasRealmStore with ChangeNotifier {
19+ class Presence extends HasUserStore with ChangeNotifier {
2020 Presence ({
21- required super .realm ,
21+ required super .users ,
2222 required Map <int , PerUserPresence > initial,
2323 }) : _map = initial {
2424 print ("Presence map size: ${_map .length }" );
Original file line number Diff line number Diff line change @@ -497,7 +497,7 @@ class PerAccountStore extends PerAccountStoreBase with
497497 typingNotifier: TypingNotifier (realm: realm),
498498 users: users,
499499 typingStatus: TypingStatus (realm: realm),
500- presence: Presence (realm : realm ,
500+ presence: Presence (users : users ,
501501 initial: initialSnapshot.presences),
502502 channels: channels,
503503 messages: MessageStoreImpl (realm: realm),
You can’t perform that action at this time.
0 commit comments