parent
620ab79f71
commit
fec963715c
|
@ -259,7 +259,7 @@ class Thread {
|
||||||
|
|
||||||
// Because moderator replies have to be editable, we enforce them to fit within 1 message
|
// Because moderator replies have to be editable, we enforce them to fit within 1 message
|
||||||
if (! utils.messageContentIsWithinMaxLength(dmContent) || ! utils.messageContentIsWithinMaxLength(inboxContent)) {
|
if (! utils.messageContentIsWithinMaxLength(dmContent) || ! utils.messageContentIsWithinMaxLength(inboxContent)) {
|
||||||
await this._deleteThreadMessage(rawThreadMessage);
|
await this._deleteThreadMessage(threadMessage.id);
|
||||||
await this.postSystemMessage("Reply is too long! Make sure your reply is under 2000 characters total, moderator name in the reply included.");
|
await this.postSystemMessage("Reply is too long! Make sure your reply is under 2000 characters total, moderator name in the reply included.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -269,7 +269,7 @@ class Thread {
|
||||||
try {
|
try {
|
||||||
dmMessage = await this._sendDMToUser(dmContent, files);
|
dmMessage = await this._sendDMToUser(dmContent, files);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
await this._deleteThreadMessage(rawThreadMessage);
|
await this._deleteThreadMessage(threadMessage.id);
|
||||||
await this.postSystemMessage(`Error while replying to user: ${e.message}`);
|
await this.postSystemMessage(`Error while replying to user: ${e.message}`);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue