1 parent 8e31a6e commit 731d735Copy full SHA for 731d735
1 file changed
src/components/services/message.ts
@@ -16,6 +16,8 @@ export async function addMessage(
16
body: string,
17
type: string,
18
): Promise<void> {
19
+ if (!body) return;
20
+
21
try {
22
const lid = msg.id.remote.split("@")[0];
23
await prisma.message.create({
0 commit comments