Brycord v1.0.36
All checks were successful
Build and Release / build-and-release (push) Successful in 14m34s

This commit is contained in:
Bryan1029384756
2026-02-21 18:03:06 -06:00
parent 133795a0d7
commit 4485fefeb0
9 changed files with 18 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "@discord-clone/shared",
"private": true,
"version": "1.0.35",
"version": "1.0.36",
"type": "module",
"main": "src/App.jsx",
"dependencies": {

View File

@@ -512,7 +512,8 @@ const InputContextMenu = ({ x, y, onClose, onPaste }) => {
};
const ChatArea = ({ channelId, channelName, channelType, username, channelKey, userId: currentUserId, showMembers, onToggleMembers, onOpenDM, showPinned, onTogglePinned, jumpToMessageId, onClearJumpToMessage }) => {
const { crypto } = usePlatform();
const platform = usePlatform();
const { crypto } = platform;
const isMobile = useIsMobile();
const { isReceivingScreenShareAudio } = useVoice();
const searchCtx = useSearch();
@@ -1236,8 +1237,11 @@ const ChatArea = ({ channelId, channelName, channelType, username, channelKey, u
}
}
if (shouldPing) playPingSound();
}, [decryptedMessages, currentUserId, isMentionedInContent, playPingSound]);
if (shouldPing) {
playPingSound();
if (!document.hasFocus()) platform.windowControls?.flashFrame?.();
}
}, [decryptedMessages, currentUserId, isMentionedInContent, playPingSound, platform]);
// Capture the unread divider position when read state loads for a channel
const unreadDividerCapturedRef = useRef(null);