frontend-rw #1

Merged
marcin merged 347 commits from frontend-rw into develop 2024-12-05 15:32:18 -08:00
2 changed files with 2 additions and 9 deletions
Showing only changes of commit 3071b314ae - Show all commits

View file

@ -87,7 +87,7 @@ const updateNotifications = (notification: BaseNotification) =>
}
};
const updateNotificationsQueue = (notification: BaseNotification, intlMessages: Record<string, string>, intlLocale: string, curPath: string) =>
const updateNotificationsQueue = (notification: BaseNotification, intlMessages: Record<string, string>, intlLocale: string) =>
(dispatch: AppDispatch, getState: () => RootState) => {
if (!notification.type) return; // drop invalid notifications
if (notification.type === 'chat_mention') return; // Drop chat notifications, handle them per-chat

View file

@ -118,14 +118,7 @@ const useUserStream = () => {
break;
case 'notification':
messages[getLocale()]().then(messages => {
dispatch(
updateNotificationsQueue(
event.payload,
messages,
getLocale(),
window.location.pathname,
),
);
dispatch(updateNotificationsQueue(event.payload, messages, getLocale()));
}).catch(error => {
console.error(error);
});