mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-14 15:10:17 +00:00
* Config to enable when clicking on username to fill input with @mention * Rename to experimental and move tenary from componet to variable * Use getCurrentChannelId in insertToPostDraft action * Change to work with rebase * Refactor thread reducer and blacklist currentThreadId * Review feedback * Review feedback 2
23 lines
592 B
JavaScript
23 lines
592 B
JavaScript
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {ViewTypes} from 'app/constants';
|
|
|
|
export function handleCommentDraftChanged(rootId, draft) {
|
|
return async (dispatch, getState) => {
|
|
dispatch({
|
|
type: ViewTypes.COMMENT_DRAFT_CHANGED,
|
|
rootId,
|
|
draft
|
|
}, getState);
|
|
};
|
|
}
|
|
|
|
export function handleCommentDraftSelectionChanged(rootId, cursorPosition) {
|
|
return {
|
|
type: ViewTypes.COMMENT_DRAFT_SELECTION_CHANGED,
|
|
rootId,
|
|
cursorPosition
|
|
};
|
|
}
|