diff --git a/src/state/models/lists/lists-list.ts b/src/state/models/lists/lists-list.ts index 8130a383be..862f96f566 100644 --- a/src/state/models/lists/lists-list.ts +++ b/src/state/models/lists/lists-list.ts @@ -25,7 +25,7 @@ export class ListsListModel { constructor( public rootStore: RootStoreModel, - public source: 'blocklists' | string, + public source: 'mutelists' | string, ) { makeAutoObservable( this, @@ -62,7 +62,7 @@ export class ListsListModel { this._xLoading(replace) try { let res - if (this.source === 'blocklists') { + if (this.source === 'mutelists') { res = await this.rootStore.agent.app.bsky.graph.getListBlocks({ limit: PAGE_SIZE, cursor: replace ? undefined : this.loadMoreCursor, diff --git a/src/view/com/lists/MyListsEmptyState.tsx b/src/view/com/lists/MyListsEmptyState.tsx index 6afb84111d..641404b229 100644 --- a/src/view/com/lists/MyListsEmptyState.tsx +++ b/src/view/com/lists/MyListsEmptyState.tsx @@ -38,15 +38,14 @@ export function MyListsEmptyState() { size={14} /> - New blocklist + New mutelist - Currently only "blocklists" are available, which is kind of weird but - we wanted to prioritize user safety. Feedlists will be implemented - soon! + Currently only "mutelists" are available. Feed lists will be + implemented soon! diff --git a/src/view/com/lists/SubscribedBlocklistsEmptyState.tsx b/src/view/com/lists/SubscribedMutelistsEmptyState.tsx similarity index 88% rename from src/view/com/lists/SubscribedBlocklistsEmptyState.tsx rename to src/view/com/lists/SubscribedMutelistsEmptyState.tsx index 1b38663ccd..281a0f9ae6 100644 --- a/src/view/com/lists/SubscribedBlocklistsEmptyState.tsx +++ b/src/view/com/lists/SubscribedMutelistsEmptyState.tsx @@ -9,7 +9,7 @@ import {Button} from '../util/forms/Button' import {usePalette} from 'lib/hooks/usePalette' import {s} from 'lib/styles' -export function SubscribedBlocklistsEmptyState() { +export function SubscribedMutelistsEmptyState() { const pal = usePalette('default') const palInverted = usePalette('inverted') @@ -27,8 +27,8 @@ export function SubscribedBlocklistsEmptyState() { /> - You can subscribe to blocklists to automatically block all of the users - they include. Blocklists and your subscriptions are public. + You can subscribe to mutelists to automatically mute all of the users + they include. Mutelists are public but your subscription is not. diff --git a/src/view/screens/Lists.tsx b/src/view/screens/Lists.tsx index 954efcb38f..95e50affb6 100644 --- a/src/view/screens/Lists.tsx +++ b/src/view/screens/Lists.tsx @@ -5,7 +5,7 @@ import {withAuthRequired} from 'view/com/auth/withAuthRequired' import {TabBar} from '../com/pager/TabBar' import {Pager, RenderTabBarFnProps} from 'view/com/pager/Pager' import {MyListsEmptyState} from 'view/com/lists/MyListsEmptyState' -import {SubscribedBlocklistsEmptyState} from 'view/com/lists/SubscribedBlocklistsEmptyState' +import {SubscribedMutelistsEmptyState} from 'view/com/lists/SubscribedMutelistsEmptyState' import {useStores} from 'state/index' import {ListsListModel} from 'state/models/lists/lists-list' import {ListsList} from 'view/com/lists/ListsList' @@ -23,8 +23,8 @@ export const ListsScreen = withAuthRequired(({route}: Props) => { return list }, [store]) - const blocklists: ListsListModel = React.useMemo(() => { - const list = new ListsListModel(store, 'blocklists') + const mutelists: ListsListModel = React.useMemo(() => { + const list = new ListsListModel(store, 'mutelists') list.loadMore() return list }, [store]) @@ -46,7 +46,7 @@ export const ListsScreen = withAuthRequired(({route}: Props) => { return ( { return }, []) - const renderBlockliststEmptyState = React.useCallback(() => { - return + const renderMutelistsEmptyState = React.useCallback(() => { + return }, []) return ( @@ -76,9 +76,9 @@ export const ListsScreen = withAuthRequired(({route}: Props) => { /> )