Skip to content

Commit

Permalink
release: v1.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
joshxfi authored Oct 2, 2023
2 parents c6b5e9e + b7feb27 commit 6b9c3cf
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
5 changes: 1 addition & 4 deletions apps/web/src/components/BottomNavbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,8 @@ export const BottomNavbar = () => {
<MdWindow className='text-3xl' />
</button>

<Link href='/global' className='relative'>
<Link href='/global'>
<HiOutlineGlobeAlt className='text-2xl' />
<p className='absolute -top-3 -right-8 text-[10px] font-bold bg-red-500 rounded-full px-2 tracking-wide'>
NEW
</p>
</Link>

{status === 'loading' || loading ? (
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/Dialog/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const MessageDialog = ({
return;
}

toPng(cardRef.current, { cacheBust: true })
toPng(cardRef.current, { cacheBust: true, pixelRatio: 5 })
.then((dataUrl) => {
const link = document.createElement('a');
link.download = `${user?.username}_${nanoid(5)}.png`;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/InboxTabs/Recent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const Recent = () => {
setIsOpen={setMsgModal}
/>

<Container>
<Container className='space-y-6'>
{messages?.map((m) => (
<button
type='button'
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/InboxTabs/SeenCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const SeenCard = ({ message, refetch }: Props) => {
return;
}

toPng(cardRef.current, { cacheBust: true })
toPng(cardRef.current, { cacheBust: true, pixelRatio: 5 })
.then((dataUrl) => {
const link = document.createElement('a');
link.download = `${user?.username}_${id}.png`;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/InboxTabs/Sent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const Sent = () => {
setPageNo={setPageNo}
setCursorId={setCursorId}
>
<Container>
<Container className='space-y-6'>
{messages?.map((m) => (
<SentCard key={m.id} data={m} />
))}
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/schema/message/message.resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ export class MessageResolver {
if (latestMessage?.updatedAt) {
const diff = new Date().getTime() - latestMessage.updatedAt.getTime();

if (diff < 1000 * 60 * 5 && process.env.NODE_ENV !== 'development') {
if (diff < 1000 * 60 && process.env.NODE_ENV !== 'development') {
return {
error: 'You can only send a message once every 5 minutes.',
error: 'You can only send a message once every 1 minute.',
};
}
}
Expand Down

1 comment on commit 6b9c3cf

@vercel
Copy link

@vercel vercel bot commented on 6b9c3cf Oct 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

umamin – ./

umamin-omsimos.vercel.app
umamin-git-main-omsimos.vercel.app
umamin.link
www.umamin.link

Please sign in to comment.