Skip to content

Commit

Permalink
fix: seesion key case
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Mar 28, 2024
1 parent fae672c commit f20edb9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/atoms/hooks/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const useSocketSessionId = () => {
const fallbackSid = getSocketWebSessionId()
if (ownerIsLogin) {
if (!owner) return fallbackSid
return `owner-${owner.id}`
return `owner_${owner.id}`
} else if (user && user.isSignedIn) {
return user.user.id.toLowerCase()
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/modules/activity/Presence.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const TimelineItem: FC<TimelineItemProps> = memo(({ type, identity }) => {
isDark ? 'dark' : 'light'
].accent
}, [isDark, presence, type])
if (!presence && isCurrent) return null
if (!presence) return null

if (typeof position !== 'number') return null
const readingDuration = presence
Expand Down

0 comments on commit f20edb9

Please sign in to comment.