Fix missing channel name

Easier to use channel name for now, we can add title later to notifications
This commit is contained in:
Thomas Zarebczan 2022-02-25 15:15:54 -05:00
parent 49fc238e4c
commit f1fdfcd329
No known key found for this signature in database
GPG key ID: 767B41E1BB7346F2

View file

@ -51,7 +51,7 @@ export default function Notification(props: Props) {
const notificationTarget = getNotificationTarget(); const notificationTarget = getNotificationTarget();
const creatorIcon = (channelUrl, channelThumbnail) => ( const creatorIcon = (channelUrl, channelThumbnail) => (
<UriIndicator uri={channelUrl} link channelInfo={{ uri: channelUrl, name: '' }}> <UriIndicator uri={channelUrl} link showAtSign channelInfo={{ uri: channelUrl, name: '' }}>
<ChannelThumbnail small thumbnailPreview={channelThumbnail} uri={channelThumbnail ? undefined : channelUrl} /> <ChannelThumbnail small thumbnailPreview={channelThumbnail} uri={channelThumbnail ? undefined : channelUrl} />
</UriIndicator> </UriIndicator>
); );
@ -113,7 +113,13 @@ export default function Notification(props: Props) {
const title = titleSplit.map((message, index) => { const title = titleSplit.map((message, index) => {
if (channelName === message) { if (channelName === message) {
uriIndicator = ( uriIndicator = (
<UriIndicator key={channelUrl} uri={channelUrl} link channelInfo={{ uri: channelUrl, name: channelName }} /> <UriIndicator
key={channelUrl}
uri={channelUrl}
link
showAtSign
channelInfo={{ uri: channelUrl, name: channelName }}
/>
); );
fullTitle.push(' '); fullTitle.push(' ');
const resultTitle = fullTitle; const resultTitle = fullTitle;