mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-01 01:35:11 +00:00
Fix channel name issue (#7153)
This commit is contained in:
parent
8a277e767a
commit
de6eb99d41
1 changed files with 5 additions and 1 deletions
|
@ -106,7 +106,11 @@ export default function Notification(props: Props) {
|
||||||
urlParams.append('lc', notification_parameters.dynamic.hash);
|
urlParams.append('lc', notification_parameters.dynamic.hash);
|
||||||
}
|
}
|
||||||
|
|
||||||
let channelName = channelUrl && '@' + channelUrl.split('@')[1].split('#')[0];
|
let channelName;
|
||||||
|
try {
|
||||||
|
const { claimName } = parseURI(channelUrl);
|
||||||
|
channelName = claimName;
|
||||||
|
} catch (e) {}
|
||||||
|
|
||||||
const notificationTitle = notification_parameters.device.title;
|
const notificationTitle = notification_parameters.device.title;
|
||||||
const titleSplit = notificationTitle.split(' ');
|
const titleSplit = notificationTitle.split(' ');
|
||||||
|
|
Loading…
Add table
Reference in a new issue