diff options
author | Emelia Smith <ThisIsMissEm@users.noreply.github.com> | 2018-04-02 13:44:19 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-04-02 13:44:19 +0200 |
commit | 4fd71accd419fb79cc75e0ebf30df374d174ebf5 (patch) | |
tree | 302da7135db2f3e82d6dbd004f78be21cf1157ed /app/javascript/mastodon/reducers/compose.js | |
parent | 3f51c6efaac0a0705d363e021951b0dd6b071a28 (diff) |
Fix issues with sending direct messages from user profile (#6999)
* Clear compose textarea when starting a new direct message Previous behaviour resulted in potentially misdirected direct messages. * Hide search when starting to compose a direct message
Diffstat (limited to 'app/javascript/mastodon/reducers/compose.js')
-rw-r--r-- | app/javascript/mastodon/reducers/compose.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/reducers/compose.js b/app/javascript/mastodon/reducers/compose.js index a48c46941..1f4177585 100644 --- a/app/javascript/mastodon/reducers/compose.js +++ b/app/javascript/mastodon/reducers/compose.js @@ -265,7 +265,7 @@ export default function compose(state = initialState, action) { .set('idempotencyKey', uuid()); case COMPOSE_DIRECT: return state - .update('text', text => `${text}@${action.account.get('acct')} `) + .update('text', text => `@${action.account.get('acct')} `) .set('privacy', 'direct') .set('focusDate', new Date()) .set('idempotencyKey', uuid()); |