Skip to content

Commit 285c1f4

Browse files
committed
store [nfc]: Move store.sendMessage up near other MessageStore proxy impls
Thanks Greg for noticing this: #1484 (comment)
1 parent 79324c9 commit 285c1f4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/model/store.dart

+5-6
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,11 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
737737
void unregisterMessageList(MessageListView view) =>
738738
_messages.unregisterMessageList(view);
739739
@override
740+
Future<void> sendMessage({required MessageDestination destination, required String content}) {
741+
assert(!_disposed);
742+
return _messages.sendMessage(destination: destination, content: content);
743+
}
744+
@override
740745
void reconcileMessages(List<Message> messages) {
741746
_messages.reconcileMessages(messages);
742747
// TODO(#649) notify [unreads] of the just-fetched messages
@@ -904,12 +909,6 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
904909
}
905910
}
906911

907-
@override
908-
Future<void> sendMessage({required MessageDestination destination, required String content}) {
909-
assert(!_disposed);
910-
return _messages.sendMessage(destination: destination, content: content);
911-
}
912-
913912
static List<CustomProfileField> _sortCustomProfileFields(List<CustomProfileField> initialCustomProfileFields) {
914913
// TODO(server): The realm-wide field objects have an `order` property,
915914
// but the actual API appears to be that the fields should be shown in

0 commit comments

Comments
 (0)