Skip to content
Snippets Groups Projects
Commit 13e822cb authored by syuilo's avatar syuilo
Browse files

Trim text

Closes #2595
parent ea9b48db
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ export default (params: any, user: ILocalUser) => new Promise(async (res, rej) =
createdAt: new Date(),
fileId: file ? file._id : undefined,
recipientId: recipient._id,
text: text ? text : undefined,
text: text ? text.trim() : undefined,
userId: user._id,
isRead: false
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment