Remove nonsense selector
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
fb34a8bf4a
commit
7cc83b3744
1 changed files with 1 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
||||||
import { useStatus } from 'pl-hooks';
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { FormattedList, FormattedMessage } from 'react-intl';
|
import { FormattedList, FormattedMessage } from 'react-intl';
|
||||||
|
|
||||||
|
@ -14,10 +13,9 @@ const ReplyMentions: React.FC<IReplyMentions> = ({ composeId }) => {
|
||||||
const features = useFeatures();
|
const features = useFeatures();
|
||||||
const compose = useCompose(composeId);
|
const compose = useCompose(composeId);
|
||||||
|
|
||||||
const status = useStatus(compose.in_reply_to!);
|
|
||||||
const to = compose.to.toArray();
|
const to = compose.to.toArray();
|
||||||
|
|
||||||
if (!features.createStatusExplicitAddressing || !status || !to) {
|
if (!features.createStatusExplicitAddressing || compose.in_reply_to || !to) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue