mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix #716
This commit is contained in:
@ -7,7 +7,9 @@ import { useEffect } from 'react'
|
||||
// /compose OR /compose/@username@example.com
|
||||
|
||||
export const useLinking = () => {
|
||||
const parseLink = async (link: string) => {
|
||||
const parseLink = async (link: string | null) => {
|
||||
if (!link) return
|
||||
|
||||
const parsed = Linking.parse(link)
|
||||
|
||||
switch (parsed.scheme) {
|
||||
|
Reference in New Issue
Block a user