Skip to content

Commit

Permalink
Trim text
Browse files Browse the repository at this point in the history
Closes #2595
  • Loading branch information
syuilo committed Sep 2, 2018
1 parent ea9b48d commit 13e822c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/api/endpoints/messaging/messages/create.ts
Expand Up @@ -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
});
Expand Down

0 comments on commit 13e822c

Please sign in to comment.