show only latest conversation instead of nested pervious messages
This commit is contained in:
parent
98848e210e
commit
7c53c07c70
1 changed files with 2 additions and 5 deletions
|
|
@ -88,10 +88,7 @@ export default {
|
||||||
while (lines.length && !lines[0].startsWith('> ')) lines.shift();
|
while (lines.length && !lines[0].startsWith('> ')) lines.shift();
|
||||||
// Reply fallback has a blank line after it, so remove it to prevent leading newline
|
// Reply fallback has a blank line after it, so remove it to prevent leading newline
|
||||||
if (lines[0] === '') lines.shift();
|
if (lines[0] === '') lines.shift();
|
||||||
const text = lines
|
const text = lines[0].replace(/^> (<.*> )?/g, '');
|
||||||
.map((item) => { return item.replace(/^> (<.*> )?/g, ''); })
|
|
||||||
.reverse()
|
|
||||||
.join('\n');
|
|
||||||
if (text) {
|
if (text) {
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue