1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-21 02:01:33 +02:00

add joined_by to allow for separate treatment of force-joiners

This commit is contained in:
Erkin Alp Güney 2022-04-08 10:53:05 +03:00 committed by GitHub
parent 6482b112c4
commit 9b2976d6b1

View File

@ -103,7 +103,16 @@ export class Member extends BaseClassWithoutId {
@Column({ nullable: true })
last_message_id?: string;
// TODO: update
/**
@JoinColumn({ name: "id" })
@ManyToOne(() => User, {
onDelete: "DO NOTHING",
// do not auto-kick force-joined members just because their joiners left the server
}) **/
@Column({ nullable: true })
joined_by: string;
// TODO: add this when we have proper read receipts
// @Column({ type: "simple-json" })
// read_state: ReadState;