diff --git a/docusaurus/docs/reactnative/common-content/core-components/channel-list/props/sort.mdx b/docusaurus/docs/reactnative/common-content/core-components/channel-list/props/sort.mdx index 143a05c5cc..06b186218e 100644 --- a/docusaurus/docs/reactnative/common-content/core-components/channel-list/props/sort.mdx +++ b/docusaurus/docs/reactnative/common-content/core-components/channel-list/props/sort.mdx @@ -4,7 +4,7 @@ You can sort a query on [built-in](https://getstream.io/chat/docs/javascript/que #### Example ```tsx -const sort = { last_message_at: -1 }; +const sort = { last_updated: -1 }; ``` :::note diff --git a/docusaurus/docs/reactnative/core-components/channel_list.mdx b/docusaurus/docs/reactnative/core-components/channel_list.mdx index 92786a48f0..fb9aa82611 100644 --- a/docusaurus/docs/reactnative/core-components/channel_list.mdx +++ b/docusaurus/docs/reactnative/core-components/channel_list.mdx @@ -60,7 +60,7 @@ import { ChannelList, Chat, OverlayProvider } from 'stream-chat-react-native'; const client = StreamChat.getInstance('api_key'); const filters = { members: { $in: [ 'vishal', 'lucas', 'neil' ] } }; -const sort = { last_message_at: -1 }; +const sort = { last_updated: -1 }; const options = { limit: 20, messages_limit: 30 }; export const App = () => diff --git a/docusaurus/reactnative_versioned_docs/version-3.x.x/common-content/core-components/channel-list/props/sort.mdx b/docusaurus/reactnative_versioned_docs/version-3.x.x/common-content/core-components/channel-list/props/sort.mdx index 143a05c5cc..06b186218e 100644 --- a/docusaurus/reactnative_versioned_docs/version-3.x.x/common-content/core-components/channel-list/props/sort.mdx +++ b/docusaurus/reactnative_versioned_docs/version-3.x.x/common-content/core-components/channel-list/props/sort.mdx @@ -4,7 +4,7 @@ You can sort a query on [built-in](https://getstream.io/chat/docs/javascript/que #### Example ```tsx -const sort = { last_message_at: -1 }; +const sort = { last_updated: -1 }; ``` :::note diff --git a/docusaurus/reactnative_versioned_docs/version-3.x.x/core-components/channel_list.mdx b/docusaurus/reactnative_versioned_docs/version-3.x.x/core-components/channel_list.mdx index 262e7cbf0b..186d55d1fd 100644 --- a/docusaurus/reactnative_versioned_docs/version-3.x.x/core-components/channel_list.mdx +++ b/docusaurus/reactnative_versioned_docs/version-3.x.x/core-components/channel_list.mdx @@ -57,7 +57,7 @@ import { ChannelList, Chat, OverlayProvider } from 'stream-chat-react-native'; const client = StreamChat.getInstance('api_key'); const filters = { members: { $in: [ 'vishal', 'lucas', 'neil' ] } }; -const sort = { last_message_at: -1 }; +const sort = { last_updated: -1 }; const options = { limit: 20, messages_limit: 30 }; export const App = () => diff --git a/docusaurus/reactnative_versioned_docs/version-4.x.x/common-content/core-components/channel-list/props/sort.mdx b/docusaurus/reactnative_versioned_docs/version-4.x.x/common-content/core-components/channel-list/props/sort.mdx index 143a05c5cc..06b186218e 100644 --- a/docusaurus/reactnative_versioned_docs/version-4.x.x/common-content/core-components/channel-list/props/sort.mdx +++ b/docusaurus/reactnative_versioned_docs/version-4.x.x/common-content/core-components/channel-list/props/sort.mdx @@ -4,7 +4,7 @@ You can sort a query on [built-in](https://getstream.io/chat/docs/javascript/que #### Example ```tsx -const sort = { last_message_at: -1 }; +const sort = { last_updated: -1 }; ``` :::note diff --git a/docusaurus/reactnative_versioned_docs/version-4.x.x/core-components/channel_list.mdx b/docusaurus/reactnative_versioned_docs/version-4.x.x/core-components/channel_list.mdx index 5f525f11b8..628a61fb90 100644 --- a/docusaurus/reactnative_versioned_docs/version-4.x.x/core-components/channel_list.mdx +++ b/docusaurus/reactnative_versioned_docs/version-4.x.x/core-components/channel_list.mdx @@ -58,7 +58,7 @@ import { ChannelList, Chat, OverlayProvider } from 'stream-chat-react-native'; const client = StreamChat.getInstance('api_key'); const filters = { members: { $in: [ 'vishal', 'lucas', 'neil' ] } }; -const sort = { last_message_at: -1 }; +const sort = { last_updated: -1 }; const options = { limit: 20, messages_limit: 30 }; export const App = () => diff --git a/examples/ExpoMessaging/app/index.tsx b/examples/ExpoMessaging/app/index.tsx index 1009a773a7..66f64105f7 100644 --- a/examples/ExpoMessaging/app/index.tsx +++ b/examples/ExpoMessaging/app/index.tsx @@ -11,7 +11,7 @@ const filters = { members: { $in: [user.id] }, type: 'messaging', }; -const sort: ChannelSort = { last_message_at: -1 }; +const sort: ChannelSort = { last_updated: -1 }; const options = { state: true, watch: true, diff --git a/examples/SampleApp/src/screens/ChannelListScreen.tsx b/examples/SampleApp/src/screens/ChannelListScreen.tsx index c75b13f50a..429b537933 100644 --- a/examples/SampleApp/src/screens/ChannelListScreen.tsx +++ b/examples/SampleApp/src/screens/ChannelListScreen.tsx @@ -51,7 +51,7 @@ const styles = StyleSheet.create({ const baseFilters = { type: 'messaging', }; -const sort: ChannelSort = { last_message_at: -1 }; +const sort: ChannelSort = { last_updated: -1 }; const options = { presence: true, state: true, diff --git a/examples/SampleApp/src/screens/SharedGroupsScreen.tsx b/examples/SampleApp/src/screens/SharedGroupsScreen.tsx index 851e020065..4ac34b9282 100644 --- a/examples/SampleApp/src/screens/SharedGroupsScreen.tsx +++ b/examples/SampleApp/src/screens/SharedGroupsScreen.tsx @@ -191,7 +191,7 @@ export const SharedGroupsScreen: React.FC = ({ }} Preview={CustomPreview} sort={{ - last_message_at: -1, + last_updated: -1, }} /> diff --git a/examples/TypeScriptMessaging/App.tsx b/examples/TypeScriptMessaging/App.tsx index 86c052f85b..ffb15303d5 100644 --- a/examples/TypeScriptMessaging/App.tsx +++ b/examples/TypeScriptMessaging/App.tsx @@ -65,7 +65,7 @@ const filters = { members: { $in: ['ron'] }, type: 'messaging', }; -const sort: ChannelSort = { last_message_at: -1 }; +const sort: ChannelSort = { last_updated: -1 }; /** * Start playing with streami18n instance here: diff --git a/package/src/__tests__/offline-support/offline-feature.js b/package/src/__tests__/offline-support/offline-feature.js index 4a8acbbb57..3faa638b18 100644 --- a/package/src/__tests__/offline-support/offline-feature.js +++ b/package/src/__tests__/offline-support/offline-feature.js @@ -195,7 +195,7 @@ export const Generic = () => { foo: 'bar', type: 'messaging', }; - const sort = { last_message_at: 1 }; + const sort = { last_updated: 1 }; const renderComponent = () => render( diff --git a/package/src/components/docs/data.js b/package/src/components/docs/data.js index e16e010676..c431e4e709 100644 --- a/package/src/components/docs/data.js +++ b/package/src/components/docs/data.js @@ -33,7 +33,7 @@ export const suggestionsContext = { }; const filters = { example: 1, type: 'team' }; -const sort = { last_message_at: -1 }; +const sort = { last_updated: -1 }; export const channels = client.queryChannels(filters, sort, { subscribe: true,