feat: enhance push notification management and error handling

- Implemented error handling for unhandled promise rejections related to message channels, improving stability during push notification operations.
- Updated the PushNotificationManager component to manage push subscription registration with timeouts, preventing application hangs.
- Enhanced the sidebar and chat components to display user avatars, improving user experience and visual consistency.
- Refactored email processing logic to support scheduled email sending, integrating new backend functionalities for better email management.
- Improved overall error handling and logging across components to reduce console spam and enhance debugging capabilities.
This commit is contained in:
2025-11-05 06:14:52 -03:00
parent f6671e0f16
commit aa3e3470cd
20 changed files with 2515 additions and 1665 deletions

View File

@@ -14,9 +14,10 @@ export const enviar = action({
"use node";
const nodemailer = await import("nodemailer");
let email;
try {
// Buscar email da fila
const email = await ctx.runQuery(internal.email.getEmailById, {
email = await ctx.runQuery(internal.email.getEmailById, {
emailId: args.emailId,
});