forked from Ivasoft/mattermost-mobile
23 lines
594 B
JavaScript
23 lines
594 B
JavaScript
// Copyright (c) 2015-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,
|
|
};
|
|
}
|