Node.js based forum software built for the modern web
only create 1 alert for chat spam error
barisusaklif092b7754e82
diff --git a/public/src/client/chats/messages.js b/public/src/client/chats/messages.jsindex 987ac46c79..2a1889cf25 100644--- a/public/src/client/chats/messages.js+++ b/public/src/client/chats/messages.js@@ -35,7 +35,14 @@ define('forum/chats/messages', ['components', 'sounds', 'translator'], functionif (err.message === '[[error:email-not-confirmed-chat]]') {return app.showEmailConfirmWarning(err);}- return app.alertError(err.message);++ return app.alert({+ alert_id: 'chat_spam_error',+ title: '[[global:alert.error]]',+ message: err.message,+ type: 'danger',+ timeout: 10000,+ });}sounds.play('chat-outgoing');