Moved function down, to fix dependency issues on other function.
@@ -459,11 +459,6 @@ export const selectLatestLoadedMessages = createSelector(
(events, flattenedPrevUris) => events.filter((e, uri) => !flattenedPrevUris.has(uri))
);
-export const selectSortedChatMessagesArray = createSelector(
- selectSortedChatMessages,
- sortedMessages => sortedMessages.toArray()
-);
-
//TODO refactor so that it always returns an array of immutable messages to
// allow ng-repeat without giving up the cheaper digestion
export const selectSortedChatMessages = createSelector(
@@ -541,6 +536,12 @@ export const selectSortedChatMessages = createSelector(
}
);
+export const selectSortedChatMessagesArray = createSelector(
+ selectSortedChatMessages,
+ sortedMessages => sortedMessages.toArray()
+);
+
+
window.selectAllByConnections4dbg = selectAllByConnections;
window.allByConnection4db = allByConnection;
