mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
refactor(app): drop the unread jump anchor now the scroller finds it (#1858)
This commit is contained in:
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) => {
|
||||
|
||||
Reference in new issue
Block a user