feat: improve inbox management and conversation list
This commit is contained in:
@@ -71,7 +71,7 @@ export const registerSubscription = (onSuccess = () => {}) => {
|
||||
.catch(error => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.error('Push subscription registration failed:', error);
|
||||
useAlert('This browser does not support desktop notification');
|
||||
useAlert('DESKTOP_NOTIFICATION_UNSUPPORTED', { usei18n: true });
|
||||
});
|
||||
};
|
||||
|
||||
@@ -79,7 +79,7 @@ export const requestPushPermissions = ({ onSuccess }) => {
|
||||
if (!('Notification' in window)) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.warn('Notification is not supported');
|
||||
useAlert('This browser does not support desktop notification');
|
||||
useAlert('DESKTOP_NOTIFICATION_UNSUPPORTED', { usei18n: true });
|
||||
} else if (Notification.permission === 'granted') {
|
||||
registerSubscription(onSuccess);
|
||||
} else if (Notification.permission !== 'denied') {
|
||||
|
||||
Reference in New Issue
Block a user