refactor(app): drop the unread jump anchor now the scroller finds it (#1858)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-24 12:32:44 +02:00
1 parent af7469fa1f
commit 52781cfa2d
17 files changed
+148 -152

No files matched your search

@@ -50,7 +50,7 @@ class AutoAck {
}
const isAtBottom = Dimension.isAtBottom(channelId) ?? false;
const readState = ReadStates.getIfExists(channelId);
const isManualAck = readState?.isManualAck ?? false;
const ackedManually = readState?.ackedManually ?? false;
const channel = Channels.getChannel(channelId);
const isGuildVoiceCallExpanded =
channel?.type === ChannelTypes.GUILD_VOICE
@@ -63,7 +63,7 @@ class AutoAck {
activeVoiceCallFullscreenScopeKey: VoiceCallFullscreen.activeScopeKey,
});
const isMediaViewerOpen = MediaViewer.isOpen;
const canAutoAck = !isManualAck && isWindowFocused && isTextChatVisible && !isMediaViewerOpen;
const canAutoAck = !ackedManually && isWindowFocused && isTextChatVisible && !isMediaViewerOpen;
return {windowId, channelId, isAtBottom, canAutoAck};
},
(conditions) => {