mirror of https://github.com/tooot-app/app
10 lines
367 B
TypeScript
10 lines
367 B
TypeScript
import { getAccountStorage } from '@utils/storage/actions'
|
|
|
|
export const checkIsMyAccount = (id?: Mastodon.Account['id']): boolean => {
|
|
if (!id) return false
|
|
|
|
const accountId = getAccountStorage.string('auth.account.id')
|
|
const accountDomain = getAccountStorage.string('auth.account.domain')
|
|
return accountId === id || `${accountId}@${accountDomain}` === id
|
|
}
|