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
This commit is contained in:
committed by
Eugen Rochko
parent
3f51c6efaa
commit
4fd71accd4
@ -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());
|
||||
|
Reference in New Issue
Block a user