Message / Quick Reaction: Fix button getting stuck (#3471)
This commit is contained in:
parent
b7b8feb07d
commit
a5486b9ada
@ -1,6 +1,6 @@
|
|||||||
import type { FC } from '../../../lib/teact/teact';
|
import type { FC } from '../../../lib/teact/teact';
|
||||||
import React, {
|
import React, {
|
||||||
memo, useEffect, useMemo, useRef, useState,
|
memo, useCallback, useEffect, useMemo, useRef, useState,
|
||||||
} from '../../../lib/teact/teact';
|
} from '../../../lib/teact/teact';
|
||||||
import { getActions, withGlobal } from '../../../global';
|
import { getActions, withGlobal } from '../../../global';
|
||||||
import type {
|
import type {
|
||||||
@ -800,7 +800,7 @@ const Message: FC<OwnProps & StateProps> = ({
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const renderQuickReactionButton = useLastCallback(() => {
|
const renderQuickReactionButton = useCallback(() => {
|
||||||
if (!defaultReaction) return undefined;
|
if (!defaultReaction) return undefined;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -817,7 +817,10 @@ const Message: FC<OwnProps & StateProps> = ({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
});
|
}, [
|
||||||
|
activeReactions, availableReactions, defaultReaction, handleSendQuickReaction, isQuickReactionVisible,
|
||||||
|
observeIntersectionForPlaying,
|
||||||
|
]);
|
||||||
|
|
||||||
function renderReactionsAndMeta() {
|
function renderReactionsAndMeta() {
|
||||||
const meta = (
|
const meta = (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user