An ATproto social media client -- with an independent Appview.
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Dont trim before posting (close #1621) (#1622)

* Dont trim before posting (close #1621)

* Tweak: do trim end

authored by

Paul Frazee and committed by
GitHub
8366fe2c b74a0e0f

+2 -2
+1 -1
src/lib/api/index.ts
··· 94 94 | undefined 95 95 let reply 96 96 let rt = new RichText( 97 - {text: opts.rawText.trim()}, 97 + {text: opts.rawText.trimEnd()}, 98 98 { 99 99 cleanNewlines: true, 100 100 },
+1 -1
src/view/com/composer/text-input/TextInput.web.tsx
··· 119 119 onUpdate({editor: editorProp}) { 120 120 const json = editorProp.getJSON() 121 121 122 - const newRt = new RichText({text: editorJsonToText(json).trim()}) 122 + const newRt = new RichText({text: editorJsonToText(json).trimEnd()}) 123 123 newRt.detectFacetsWithoutResolution() 124 124 setRichText(newRt) 125 125