Comments: Fix scroll down button not working (#2729)
This commit is contained in:
parent
e480499a80
commit
f376f9fb42
@ -914,6 +914,7 @@ export async function requestThreadInfoUpdate({
|
|||||||
topMessageId,
|
topMessageId,
|
||||||
lastReadInboxMessageId: topMessageResult.readInboxMaxId,
|
lastReadInboxMessageId: topMessageResult.readInboxMaxId,
|
||||||
messagesCount: (repliesResult instanceof GramJs.messages.ChannelMessages) ? repliesResult.count : undefined,
|
messagesCount: (repliesResult instanceof GramJs.messages.ChannelMessages) ? repliesResult.count : undefined,
|
||||||
|
lastMessageId: topMessageResult.maxId,
|
||||||
...(originChannelId ? { originChannelId } : undefined),
|
...(originChannelId ? { originChannelId } : undefined),
|
||||||
},
|
},
|
||||||
firstMessageId: repliesResult && 'messages' in repliesResult && repliesResult.messages.length
|
firstMessageId: repliesResult && 'messages' in repliesResult && repliesResult.messages.length
|
||||||
|
|||||||
@ -25,6 +25,7 @@ import {
|
|||||||
ANIMATION_LEVEL_MIN,
|
ANIMATION_LEVEL_MIN,
|
||||||
SUPPORTED_IMAGE_CONTENT_TYPES,
|
SUPPORTED_IMAGE_CONTENT_TYPES,
|
||||||
GENERAL_TOPIC_ID,
|
GENERAL_TOPIC_ID,
|
||||||
|
TMP_CHAT_ID,
|
||||||
} from '../../config';
|
} from '../../config';
|
||||||
import { MASK_IMAGE_DISABLED } from '../../util/environment';
|
import { MASK_IMAGE_DISABLED } from '../../util/environment';
|
||||||
import { DropAreaState } from './composer/DropArea';
|
import { DropAreaState } from './composer/DropArea';
|
||||||
@ -222,9 +223,9 @@ const MiddleColumn: FC<OwnProps & StateProps> = ({
|
|||||||
const renderingCanStartBot = usePrevDuringAnimation(canStartBot, closeAnimationDuration);
|
const renderingCanStartBot = usePrevDuringAnimation(canStartBot, closeAnimationDuration);
|
||||||
const renderingCanRestartBot = usePrevDuringAnimation(canRestartBot, closeAnimationDuration);
|
const renderingCanRestartBot = usePrevDuringAnimation(canRestartBot, closeAnimationDuration);
|
||||||
const renderingCanPost = usePrevDuringAnimation(canPost, closeAnimationDuration)
|
const renderingCanPost = usePrevDuringAnimation(canPost, closeAnimationDuration)
|
||||||
&& !renderingCanRestartBot && !renderingCanStartBot && !renderingCanSubscribe;
|
&& !renderingCanRestartBot && !renderingCanStartBot && !renderingCanSubscribe && chatId !== TMP_CHAT_ID;
|
||||||
const renderingHasTools = usePrevDuringAnimation(hasTools, closeAnimationDuration);
|
const renderingHasTools = usePrevDuringAnimation(hasTools, closeAnimationDuration);
|
||||||
const renderingIsFabShown = usePrevDuringAnimation(isFabShown, closeAnimationDuration);
|
const renderingIsFabShown = usePrevDuringAnimation(isFabShown, closeAnimationDuration) && chatId !== TMP_CHAT_ID;
|
||||||
const renderingIsChannel = usePrevDuringAnimation(isChannel, closeAnimationDuration);
|
const renderingIsChannel = usePrevDuringAnimation(isChannel, closeAnimationDuration);
|
||||||
const renderingShouldJoinToSend = usePrevDuringAnimation(shouldJoinToSend, closeAnimationDuration);
|
const renderingShouldJoinToSend = usePrevDuringAnimation(shouldJoinToSend, closeAnimationDuration);
|
||||||
const renderingShouldSendJoinRequest = usePrevDuringAnimation(shouldSendJoinRequest, closeAnimationDuration);
|
const renderingShouldSendJoinRequest = usePrevDuringAnimation(shouldSendJoinRequest, closeAnimationDuration);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user