Brycord v1.0.36
All checks were successful
Build and Release / build-and-release (push) Successful in 14m34s
All checks were successful
Build and Release / build-and-release (push) Successful in 14m34s
This commit is contained in:
@@ -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": {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user