feat: Add initial Electron frontend package.json with dependencies, scripts, and build configuration.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { query, mutation } from "./_generated/server";
|
||||
import { v } from "convex/values";
|
||||
import { getPublicStorageUrl } from "./storageUrl";
|
||||
|
||||
export const openDM = mutation({
|
||||
args: {
|
||||
@@ -76,7 +77,7 @@ export const listDMs = query({
|
||||
if (!otherUser) return null;
|
||||
|
||||
const avatarUrl = otherUser.avatarStorageId
|
||||
? await ctx.storage.getUrl(otherUser.avatarStorageId)
|
||||
? await getPublicStorageUrl(ctx, otherUser.avatarStorageId)
|
||||
: null;
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user