Fix missing channel name
Easier to use channel name for now, we can add title later to notifications
This commit is contained in:
parent
49fc238e4c
commit
f1fdfcd329
1 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue