Skip to content

Commit

Permalink
chore: what givesss
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiMez committed Jun 29, 2024
1 parent 2dd6f11 commit 91888f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/routes/api/pgp/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { json } from '@sveltejs/kit';
import Listener from '../../../models/listener.schema';
import Message from '../../../models/messages.schema';
import Image from '../../../models/file.schema';
import { v4 as uuid } from 'uuid';

interface Listener {
pbKey: string;
Expand Down
4 changes: 2 additions & 2 deletions src/routes/li/[room]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,10 @@
const respTitle = await responseTitle.json();
console.log('resp', respTitle);
if (respTitle.error) {
if (respTitle.error || respTitle.status === 404) {
console.log(respTitle.message);
} else {
roomTitle = respTitle.body.title.length == 0 ? respTitle.body.rid : respTitle.body.title;
roomTitle = respTitle.body.title?.length == 0 ? respTitle.body.rid : respTitle.body.title;
}
}
Expand Down

0 comments on commit 91888f0

Please sign in to comment.