File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,15 @@ import '../api/model/model.dart';
1111import '../api/route/messages.dart' ;
1212import '../log.dart' ;
1313import 'binding.dart' ;
14+ import 'channel.dart' ;
1415import 'message_list.dart' ;
1516import 'realm.dart' ;
1617import 'store.dart' ;
1718
1819const _apiSendMessage = sendMessage; // Bit ugly; for alternatives, see: https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/flutter.3A.20PerAccountStore.20methods/near/1545809
1920
2021/// The portion of [PerAccountStore] for messages and message lists.
21- mixin MessageStore {
22+ mixin MessageStore on ChannelStore {
2223 /// All known messages, indexed by [Message.id] .
2324 Map <int , Message > get messages;
2425
@@ -138,8 +139,8 @@ class _EditMessageRequestStatus {
138139 final String newContent;
139140}
140141
141- class MessageStoreImpl extends HasRealmStore with MessageStore , _OutboxMessageStore {
142- MessageStoreImpl ({required super .realm })
142+ class MessageStoreImpl extends HasChannelStore with MessageStore , _OutboxMessageStore {
143+ MessageStoreImpl ({required super .channels })
143144 : // There are no messages in InitialSnapshot, so we don't have
144145 // a use case for initializing MessageStore with nonempty [messages].
145146 messages = {};
Original file line number Diff line number Diff line change @@ -519,7 +519,7 @@ class PerAccountStore extends PerAccountStoreBase with
519519 presence: Presence (realm: realm,
520520 initial: initialSnapshot.presences),
521521 channels: channels,
522- messages: MessageStoreImpl (realm : realm ),
522+ messages: MessageStoreImpl (channels : channels ),
523523 unreads: Unreads (core: core, channelStore: channels,
524524 initial: initialSnapshot.unreadMsgs),
525525 recentDmConversationsView: RecentDmConversationsView (core: core,
You can’t perform that action at this time.
0 commit comments