pl-fe: Actually fix the logic

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk
2025-03-02 17:49:41 +01:00
parent 6b61ab37e7
commit c1e74a8eca

View File

@ -218,7 +218,7 @@ const Notification: React.FC<INotification> = (props) => {
const account = accounts[0];
const getHandlers = () => ({
reply: handleMention,
reply: handleReply,
favourite: handleHotkeyFavourite,
boost: handleHotkeyBoost,
mention: handleMention,
@ -246,6 +246,12 @@ const Notification: React.FC<INotification> = (props) => {
const handleMention = useCallback((e?: KeyboardEvent) => {
e?.preventDefault();
dispatch(replyCompose(status, account));
}, [account]);
const handleReply = useCallback((e?: KeyboardEvent) => {
e?.preventDefault();
if (status) {
dispatch(replyCompose(status, account));
} else {