feat: improve inbox management and conversation list

This commit is contained in:
2026-09-12 14:42:57 +08:00
parent ca63efaa79
commit c415d6d13f
22 changed files with 551 additions and 537 deletions
@@ -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') {