Page MenuHomePhabricator

D5212.id17227.diff
No OneTemporary

D5212.id17227.diff

diff --git a/lib/shared/message-utils.js b/lib/shared/message-utils.js
--- a/lib/shared/message-utils.js
+++ b/lib/shared/message-utils.js
@@ -407,10 +407,13 @@
return codeBlockRegex.exec(message) ? message.trimEnd() : message.trim();
}
-function createMessageReply(message: string): string {
+function createMessageQuote(message: string): string {
// add `>` to each line to include empty lines in the quote
- const quotedMessage = message.replace(/^/gm, '> ');
- return quotedMessage + '\n\n';
+ return message.replace(/^/gm, '> ');
+}
+
+function createMessageReply(message: string): string {
+ return createMessageQuote(message) + '\n\n';
}
function getMostRecentNonLocalMessageID(
@@ -556,6 +559,7 @@
createMediaMessageInfo,
stripLocalIDs,
trimMessage,
+ createMessageQuote,
createMessageReply,
getMostRecentNonLocalMessageID,
getMessageTitle,

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 2, 12:06 PM (19 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2607537
Default Alt Text
D5212.id17227.diff (886 B)

Event Timeline