Merge branch 'develop' into enhance-migration
This commit is contained in:
commit
e2e77ac4f8
|
@ -40,7 +40,7 @@ if (props.column.channelId == null) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function setChannel() {
|
async function setChannel() {
|
||||||
const channels = await os.api('channels/followed', {
|
const channels = await os.api('channels/my-favorites', {
|
||||||
limit: 100,
|
limit: 100,
|
||||||
});
|
});
|
||||||
const { canceled, result: channel } = await os.select({
|
const { canceled, result: channel } = await os.select({
|
||||||
|
|
|
@ -56,7 +56,7 @@ globalThis.addEventListener('push', ev => {
|
||||||
return createNotification(data);
|
return createNotification(data);
|
||||||
case 'readAllNotifications':
|
case 'readAllNotifications':
|
||||||
await globalThis.registration.getNotifications()
|
await globalThis.registration.getNotifications()
|
||||||
.then(notifications => notifications.forEach(n => n.close()));
|
.then(notifications => notifications.forEach(n => n.tag !== 'read_notification' && n.close()));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ globalThis.addEventListener('notificationclick', (ev: ServiceWorkerGlobalScopeEv
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case 'markAllAsRead':
|
case 'markAllAsRead':
|
||||||
await globalThis.registration.getNotifications()
|
await globalThis.registration.getNotifications()
|
||||||
.then(notifications => notifications.forEach(n => n.close()));
|
.then(notifications => notifications.forEach(n => n.tag !== 'read_notification' && n.close()));
|
||||||
await get('accounts').then(accounts => {
|
await get('accounts').then(accounts => {
|
||||||
return Promise.all(accounts.map(async account => {
|
return Promise.all(accounts.map(async account => {
|
||||||
await swos.sendMarkAllAsRead(account.id);
|
await swos.sendMarkAllAsRead(account.id);
|
||||||
|
|
Loading…
Reference in a new issue