mirror of
https://github.com/Qortal/qortal-mobile.git
synced 2025-04-28 13:57:52 +00:00
increase notification interval and added back img
This commit is contained in:
parent
9606f80a15
commit
8e0bec2ca6
BIN
android/app/src/main/res/drawable/qort.png
Normal file
BIN
android/app/src/main/res/drawable/qort.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 158 KiB |
@ -122,7 +122,7 @@ export const groupApi = "https://ext-node.qortal.link";
|
|||||||
export const groupApiSocket = "wss://ext-node.qortal.link";
|
export const groupApiSocket = "wss://ext-node.qortal.link";
|
||||||
export const groupApiLocal = "http://127.0.0.1:12391";
|
export const groupApiLocal = "http://127.0.0.1:12391";
|
||||||
export const groupApiSocketLocal = "ws://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);
|
const requestQueueAnnouncements = new RequestQueueWithPromise(1);
|
||||||
let isMobile = true;
|
let isMobile = true;
|
||||||
|
|
||||||
@ -2934,7 +2934,6 @@ export const checkNewMessages = async () => {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
let isDisableNotifications = await getUserSettings({key: 'disable-push-notifications'}) || false
|
let isDisableNotifications = await getUserSettings({key: 'disable-push-notifications'}) || false
|
||||||
|
|
||||||
if (newAnnouncements.length > 0 && !mutedGroups.includes(newAnnouncements[0]?.groupId) && !isDisableNotifications) {
|
if (newAnnouncements.length > 0 && !mutedGroups.includes(newAnnouncements[0]?.groupId) && !isDisableNotifications) {
|
||||||
const notificationId = generateId()
|
const notificationId = generateId()
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ export const MessageDisplay = ({ htmlContent , isReply}) => {
|
|||||||
const target = e.target.closest('a');
|
const target = e.target.closest('a');
|
||||||
if (target) {
|
if (target) {
|
||||||
const href = target.getAttribute('href');
|
const href = target.getAttribute('href');
|
||||||
await Browser.open({ url: href });
|
window.open(href, '_system');
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
console.error('No <a> tag found or href is null.');
|
console.error('No <a> tag found or href is null.');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user