pl-fe: disable mention hotkey when unauthenticated
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
955778c0c1
commit
99b1b6991f
1 changed files with 3 additions and 1 deletions
|
@ -252,7 +252,9 @@ interface ComposeMentionAction {
|
||||||
}
|
}
|
||||||
|
|
||||||
const mentionCompose = (account: ComposeMentionAction['account']) =>
|
const mentionCompose = (account: ComposeMentionAction['account']) =>
|
||||||
(dispatch: AppDispatch) => {
|
(dispatch: AppDispatch, getState: () => RootState) => {
|
||||||
|
if (!getState().me) return;
|
||||||
|
|
||||||
const action: ComposeMentionAction = {
|
const action: ComposeMentionAction = {
|
||||||
type: COMPOSE_MENTION,
|
type: COMPOSE_MENTION,
|
||||||
composeId: 'compose-modal',
|
composeId: 'compose-modal',
|
||||||
|
|
Loading…
Reference in a new issue