diff --git a/packages/app/src/Pages/settings/Menu.tsx b/packages/app/src/Pages/settings/Menu.tsx
index 39d51c71..9729650d 100644
--- a/packages/app/src/Pages/settings/Menu.tsx
+++ b/packages/app/src/Pages/settings/Menu.tsx
@@ -45,12 +45,16 @@ const SettingsIndex = () => {
message:
,
path: "keys",
},
- {
- icon: "badge",
- iconBg: "bg-pink-500",
- message:
,
- path: "handle",
- },
+ ...(CONFIG.features.nostrAddress
+ ? [
+ {
+ icon: "badge",
+ iconBg: "bg-pink-500",
+ message:
,
+ path: "handle",
+ },
+ ]
+ : []),
{
icon: "gear",
iconBg: "bg-slate-500",
@@ -96,18 +100,26 @@ const SettingsIndex = () => {
message:
,
path: "moderation",
},
- {
- icon: "bell-outline",
- iconBg: "bg-red-500",
- message:
,
- path: "notifications",
- },
- {
- icon: "link",
- iconBg: "bg-blue-500",
- message:
,
- path: "invite",
- },
+ ...(CONFIG.features.pushNotifications
+ ? [
+ {
+ icon: "bell-outline",
+ iconBg: "bg-red-500",
+ message:
,
+ path: "notifications",
+ },
+ ]
+ : []),
+ ...(CONFIG.features.communityLeaders
+ ? [
+ {
+ icon: "link",
+ iconBg: "bg-blue-500",
+ message:
,
+ path: "invite",
+ },
+ ]
+ : []),
{
icon: "hard-drive",
iconBg: "bg-cyan-500",
diff --git a/packages/app/src/Utils/Notifications.ts b/packages/app/src/Utils/Notifications.ts
index cca512b7..8d5fd055 100644
--- a/packages/app/src/Utils/Notifications.ts
+++ b/packages/app/src/Utils/Notifications.ts
@@ -74,6 +74,9 @@ export async function sendNotification(state: LoginSession, req: NotificationReq
}
export async function subscribeToNotifications(publisher: EventPublisher) {
+ if (!CONFIG.features.pushNotifications) {
+ return;
+ }
// request permissions to send notifications
if ("Notification" in window) {
try {
diff --git a/packages/app/src/assets/img/telegram.svg b/packages/app/src/assets/img/telegram.svg
new file mode 100644
index 00000000..c67526fd
--- /dev/null
+++ b/packages/app/src/assets/img/telegram.svg
@@ -0,0 +1,16 @@
+
+
\ No newline at end of file
diff --git a/packages/app/src/lang.json b/packages/app/src/lang.json
index ad1ea851..73829652 100644
--- a/packages/app/src/lang.json
+++ b/packages/app/src/lang.json
@@ -691,6 +691,9 @@
"LF5kYT": {
"defaultMessage": "Other Connections"
},
+ "LKw/ue": {
+ "defaultMessage": "Check out the code {link}"
+ },
"LR1XjT": {
"defaultMessage": "Pin too short"
},
@@ -902,6 +905,9 @@
"TDR5ge": {
"defaultMessage": "Media in notes will automatically be shown for selected people, otherwise only the link will show"
},
+ "TH1fFo": {
+ "defaultMessage": "Telegram"
+ },
"TJo5E6": {
"defaultMessage": "Preview"
},
@@ -1023,9 +1029,6 @@
"XgWvGA": {
"defaultMessage": "Reactions"
},
- "XhpBfA": {
- "defaultMessage": "{site} is an open source project built by passionate people in their free time, your donations are greatly appreciated"
- },
"Xnimz0": {
"defaultMessage": "Sending from
{wallet}"
},
@@ -1226,6 +1229,9 @@
"fBlba3": {
"defaultMessage": "Thanks for using {site}, please consider donating if you can."
},
+ "fLIvbC": {
+ "defaultMessage": "Snort is an open source project built by passionate people in their free time, your donations are greatly appreciated"
+ },
"fOksnD": {
"defaultMessage": "Can't vote because LNURL service does not support zaps"
},
@@ -1579,6 +1585,9 @@
"rmdsT4": {
"defaultMessage": "{n} days"
},
+ "rn52n9": {
+ "defaultMessage": "Public Chat Channels"
+ },
"rx1i0i": {
"defaultMessage": "Short link"
},
@@ -1615,9 +1624,6 @@
"u/vOPu": {
"defaultMessage": "Paid"
},
- "u4bHcR": {
- "defaultMessage": "Check out the code here: {link}"
- },
"u9NoC1": {
"defaultMessage": "Name must be less than {limit} characters"
},
@@ -1679,6 +1685,9 @@
"defaultMessage": "Anon",
"description": "Anonymous Zap"
},
+ "whSrs+": {
+ "defaultMessage": "Nostr Public Chat"
+ },
"wih7iJ": {
"defaultMessage": "name is blocked"
},
@@ -1737,9 +1746,6 @@
"yCLnBC": {
"defaultMessage": "LNURL or Lightning Address"
},
- "yNBPJp": {
- "defaultMessage": "Help fund the development of {site}"
- },
"zCb8fX": {
"defaultMessage": "Weight"
},
diff --git a/packages/app/src/translations/en.json b/packages/app/src/translations/en.json
index dad8f98c..e5cf15b7 100644
--- a/packages/app/src/translations/en.json
+++ b/packages/app/src/translations/en.json
@@ -228,6 +228,7 @@
"KtsyO0": "Enter Pin",
"LBAnc7": "View as user?",
"LF5kYT": "Other Connections",
+ "LKw/ue": "Check out the code {link}",
"LR1XjT": "Pin too short",
"LXxsbk": "Anonymous",
"LgbKvU": "Comment",
@@ -297,6 +298,7 @@
"Ss0sWu": "Pay Now",
"StKzTE": "The author has marked this note as a
sensitive topic",
"TDR5ge": "Media in notes will automatically be shown for selected people, otherwise only the link will show",
+ "TH1fFo": "Telegram",
"TJo5E6": "Preview",
"TP/cMX": "Ended",
"TaeBqw": "Sign in with Nostr Extension",
@@ -337,7 +339,6 @@
"XQiFEl": "Follows Relay Health",
"XXm7jJ": "Trending Hashtags",
"XgWvGA": "Reactions",
- "XhpBfA": "{site} is an open source project built by passionate people in their free time, your donations are greatly appreciated",
"Xnimz0": "Sending from
{wallet}",
"Xopqkl": "Your default zap amount is {number} sats, example values are calculated from this.",
"XrSk2j": "Redeem",
@@ -404,6 +405,7 @@
"f2CAxA": "Dump",
"fBI91o": "Zap",
"fBlba3": "Thanks for using {site}, please consider donating if you can.",
+ "fLIvbC": "Snort is an open source project built by passionate people in their free time, your donations are greatly appreciated",
"fOksnD": "Can't vote because LNURL service does not support zaps",
"fQN+tq": "Show posts that have a content warning tag",
"fWZYP5": "Pinned",
@@ -521,6 +523,7 @@
"rT14Ow": "Add Relays",
"rfuMjE": "(Default)",
"rmdsT4": "{n} days",
+ "rn52n9": "Public Chat Channels",
"rx1i0i": "Short link",
"sKDn4e": "Show Badges",
"sUNhQE": "user",
@@ -533,7 +536,6 @@
"tjpYlr": "Relay Metrics",
"ttxS0b": "Supporter Badge",
"u/vOPu": "Paid",
- "u4bHcR": "Check out the code here: {link}",
"u9NoC1": "Name must be less than {limit} characters",
"uCk8r+": "Already have an account?",
"uSV4Ti": "Reposts need to be manually confirmed",
@@ -554,6 +556,7 @@
"wEQDC6": "Edit",
"wSZR47": "Submit",
"wWLwvh": "Anon",
+ "whSrs+": "Nostr Public Chat",
"wih7iJ": "name is blocked",
"wofVHy": "Moderation",
"wqyN/i": "Find out more info about {service} at {link}",
@@ -573,7 +576,6 @@
"y/bmsG": "Allow",
"y1Z3or": "Language",
"yCLnBC": "LNURL or Lightning Address",
- "yNBPJp": "Help fund the development of {site}",
"zCb8fX": "Weight",
"zFegDD": "Contact",
"zINlao": "Owner",