Use correct profile types

This commit is contained in:
Eric Bailey
2025-01-07 17:28:03 -06:00
parent f5530aa9fa
commit db63cc17f0
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ import {VerifyEmailDialog} from '../dialogs/VerifyEmailDialog'
export function MessageProfileButton({
profile,
}: {
profile: AppBskyActorDefs.ProfileView
profile: AppBskyActorDefs.ProfileViewDetailed
}) {
const {_} = useLingui()
const t = useTheme()
+2 -2
View File
@@ -1,6 +1,6 @@
import {AppBskyActorDefs} from '@atproto/api'
import * as atp from '#/types/atproto'
export function canBeMessaged(profile: AppBskyActorDefs.ProfileView) {
export function canBeMessaged(profile: atp.profile.AnyProfileView) {
switch (profile.associated?.chat?.allowIncoming) {
case 'none':
return false