summary refs log tree commit diff
path: root/src/util/entities/Message.ts
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2024-04-15 13:09:20 -0400
committerGitHub <noreply@github.com>2024-04-15 13:09:20 -0400
commit2028b25902feaf29181fdead0fe150946a636447 (patch)
treef4014c5b2d82752e41355816374ae51f50229486 /src/util/entities/Message.ts
parentAdd nix flake to repo (#1111) (diff)
parentFix message flags being null (diff)
downloadserver-2028b25902feaf29181fdead0fe150946a636447.tar.xz
Merge pull request #1116 from spacebarchat/patch/null-message-flags HEAD master
Fix message flags being null
Diffstat (limited to 'src/util/entities/Message.ts')
-rw-r--r--src/util/entities/Message.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/entities/Message.ts b/src/util/entities/Message.ts
index b519099a..4a9cff4a 100644
--- a/src/util/entities/Message.ts
+++ b/src/util/entities/Message.ts
@@ -192,8 +192,8 @@ export class Message extends BaseClass {
 		party_id: string;
 	};
 
-	@Column({ nullable: true })
-	flags?: number;
+	@Column({ default: 0 })
+	flags: number;
 
 	@Column({ type: "simple-json", nullable: true })
 	message_reference?: {