feat: Add initial Electron frontend package.json with dependencies, scripts, and build configuration.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { query, mutation } from "./_generated/server";
|
||||
import { paginationOptsValidator } from "convex/server";
|
||||
import { v } from "convex/values";
|
||||
import { getPublicStorageUrl } from "./storageUrl";
|
||||
|
||||
export const list = query({
|
||||
args: {
|
||||
@@ -22,7 +23,7 @@ export const list = query({
|
||||
|
||||
let avatarUrl: string | null = null;
|
||||
if (sender?.avatarStorageId) {
|
||||
avatarUrl = await ctx.storage.getUrl(sender.avatarStorageId);
|
||||
avatarUrl = await getPublicStorageUrl(ctx, sender.avatarStorageId);
|
||||
}
|
||||
|
||||
const reactionDocs = await ctx.db
|
||||
@@ -51,7 +52,7 @@ export const list = query({
|
||||
replyToContent = repliedMsg.ciphertext;
|
||||
replyToNonce = repliedMsg.nonce;
|
||||
if (repliedSender?.avatarStorageId) {
|
||||
replyToAvatarUrl = await ctx.storage.getUrl(repliedSender.avatarStorageId);
|
||||
replyToAvatarUrl = await getPublicStorageUrl(ctx, repliedSender.avatarStorageId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user