[APP-702] Render Custom Feed likes properly (#980)

* render href for custom feed likes properly

* fix custom feed text in push notification

* fix custom feed accessibility title

* fix lint
This commit is contained in:
Ansh 2023-07-05 17:56:26 -07:00 committed by GitHub
parent 99aa38e3ca
commit fe32730025
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 4 deletions

View file

@ -1,5 +1,5 @@
import notifee, {EventType} from '@notifee/react-native'
import {AppBskyEmbedImages} from '@atproto/api'
import {AppBskyEmbedImages, AtUri} from '@atproto/api'
import {RootStoreModel} from 'state/models/root-store'
import {NotificationsFeedItemModel} from 'state/models/feeds/notifications'
import {enforceLen} from 'lib/strings/helpers'
@ -63,6 +63,9 @@ export function displayNotificationFromModel(
} else if (notification.isFollow) {
title = 'New follower!'
body = `${author} has followed you`
} else if (notification.isCustomFeedLike) {
title = `${author} liked your custom feed`
body = `${new AtUri(notification.subjectUri).rkey}`
} else {
return
}