From b955f2820cef2f2a2b2672ee74eb3737f0c93db0 Mon Sep 17 00:00:00 2001 From: Paul Date: Sat, 25 Dec 2021 14:49:31 +0000 Subject: [PATCH] fix: hide new message bar on jump to bottom --- src/components/common/messaging/bars/JumpToBottom.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/common/messaging/bars/JumpToBottom.tsx b/src/components/common/messaging/bars/JumpToBottom.tsx index 98fc6474..e6373a86 100644 --- a/src/components/common/messaging/bars/JumpToBottom.tsx +++ b/src/components/common/messaging/bars/JumpToBottom.tsx @@ -5,6 +5,7 @@ import styled, { css } from "styled-components"; import { Text } from "preact-i18n"; +import { internalEmit } from "../../../../lib/eventEmitter"; import { isTouchscreenDevice } from "../../../../lib/isTouchscreenDevice"; import { getRenderer } from "../../../../lib/renderer/Singleton"; @@ -88,7 +89,11 @@ export default observer(({ channel }: { channel: Channel }) => { return ( -
renderer.jumpToBottom(true)}> +
{ + renderer.jumpToBottom(true); + internalEmit("NewMessages", "hide"); + }}>