pl-fe: disable mention hotkey when unauthenticated

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-10-10 23:38:46 +02:00
parent 955778c0c1
commit 99b1b6991f

View file

@ -252,7 +252,9 @@ interface ComposeMentionAction {
}
const mentionCompose = (account: ComposeMentionAction['account']) =>
(dispatch: AppDispatch) => {
(dispatch: AppDispatch, getState: () => RootState) => {
if (!getState().me) return;
const action: ComposeMentionAction = {
type: COMPOSE_MENTION,
composeId: 'compose-modal',