fix js error removed dupe code

This commit is contained in:
Barış Soner Uşaklı
2015-03-11 13:32:28 -04:00
parent abd3979fb3
commit 940c33c426
3 changed files with 5 additions and 24 deletions

View File

@@ -207,7 +207,7 @@ define('forum/chats', ['string', 'sounds', 'forum/infinitescroll'], function(S,
}, function(err) {
if (err) {
if (err.message === '[[error:email-not-confirmed-chat]]') {
return showEmailConfirmAlert(err);
return app.showEmailConfirmWarning(err);
}
return app.alertError(err.message);
}