mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 05:55:48 +01:00
closes #5239
This commit is contained in:
@@ -27,6 +27,7 @@ define('forum/chats/messages', ['components', 'sounds', 'translator'], function
|
|||||||
message: msg
|
message: msg
|
||||||
}, function (err) {
|
}, function (err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
inputEl.val(msg);
|
||||||
if (err.message === '[[error:email-not-confirmed-chat]]') {
|
if (err.message === '[[error:email-not-confirmed-chat]]') {
|
||||||
return app.showEmailConfirmWarning(err);
|
return app.showEmailConfirmWarning(err);
|
||||||
}
|
}
|
||||||
@@ -42,6 +43,8 @@ define('forum/chats/messages', ['components', 'sounds', 'translator'], function
|
|||||||
message: msg
|
message: msg
|
||||||
}, function (err) {
|
}, function (err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
inputEl.val(msg);
|
||||||
|
inputEl.attr('data-mid', mid);
|
||||||
return app.alertError(err.message);
|
return app.alertError(err.message);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user