increase notification interval and added back img

This commit is contained in:
PhilReact 2024-11-05 11:09:13 +02:00
parent 9606f80a15
commit 8e0bec2ca6
3 changed files with 2 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

View File

@ -122,7 +122,7 @@ export const groupApi = "https://ext-node.qortal.link";
export const groupApiSocket = "wss://ext-node.qortal.link";
export const groupApiLocal = "http://127.0.0.1:12391";
export const groupApiSocketLocal = "ws://127.0.0.1:12391";
const timeDifferenceForNotificationChatsBackground = 600000;
const timeDifferenceForNotificationChatsBackground = 86400000; // one day
const requestQueueAnnouncements = new RequestQueueWithPromise(1);
let isMobile = true;
@ -2934,7 +2934,6 @@ export const checkNewMessages = async () => {
})
);
let isDisableNotifications = await getUserSettings({key: 'disable-push-notifications'}) || false
if (newAnnouncements.length > 0 && !mutedGroups.includes(newAnnouncements[0]?.groupId) && !isDisableNotifications) {
const notificationId = generateId()

View File

@ -36,7 +36,7 @@ export const MessageDisplay = ({ htmlContent , isReply}) => {
const target = e.target.closest('a');
if (target) {
const href = target.getAttribute('href');
await Browser.open({ url: href });
window.open(href, '_system');
} else {
console.error('No <a> tag found or href is null.');