Use correct profile types
This commit is contained in:
@@ -19,7 +19,7 @@ import {VerifyEmailDialog} from '../dialogs/VerifyEmailDialog'
|
|||||||
export function MessageProfileButton({
|
export function MessageProfileButton({
|
||||||
profile,
|
profile,
|
||||||
}: {
|
}: {
|
||||||
profile: AppBskyActorDefs.ProfileView
|
profile: AppBskyActorDefs.ProfileViewDetailed
|
||||||
}) {
|
}) {
|
||||||
const {_} = useLingui()
|
const {_} = useLingui()
|
||||||
const t = useTheme()
|
const t = useTheme()
|
||||||
|
|||||||
@@ -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) {
|
switch (profile.associated?.chat?.allowIncoming) {
|
||||||
case 'none':
|
case 'none':
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user