Feature: Direct message from menu (#6956)
* Implement ability to send direct messages from the user menu * Implement message warning users that direct messages are visible to all mentioned users * Update locales
This commit is contained in:
		
							parent
							
								
									f1f846045f
								
							
						
					
					
						commit
						d1f34151ae
					
				
					 44 changed files with 126 additions and 2 deletions
				
			
		|  | @ -4,6 +4,7 @@ import { | |||
|   COMPOSE_CHANGE, | ||||
|   COMPOSE_REPLY, | ||||
|   COMPOSE_REPLY_CANCEL, | ||||
|   COMPOSE_DIRECT, | ||||
|   COMPOSE_MENTION, | ||||
|   COMPOSE_SUBMIT_REQUEST, | ||||
|   COMPOSE_SUBMIT_SUCCESS, | ||||
|  | @ -262,6 +263,12 @@ export default function compose(state = initialState, action) { | |||
|       .update('text', text => `${text}@${action.account.get('acct')} `) | ||||
|       .set('focusDate', new Date()) | ||||
|       .set('idempotencyKey', uuid()); | ||||
|   case COMPOSE_DIRECT: | ||||
|     return state | ||||
|       .update('text', text => `${text}@${action.account.get('acct')} `) | ||||
|       .set('privacy', 'direct') | ||||
|       .set('focusDate', new Date()) | ||||
|       .set('idempotencyKey', uuid()); | ||||
|   case COMPOSE_SUGGESTIONS_CLEAR: | ||||
|     return state.update('suggestions', ImmutableList(), list => list.clear()).set('suggestion_token', null); | ||||
|   case COMPOSE_SUGGESTIONS_READY: | ||||
|  |  | |||
		Reference in a new issue