core: scheduled deletion (#1075)

Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
This commit is contained in:
JRoberts 2022-09-28 20:47:06 +04:00 committed by GitHub
parent 07d2c9ff49
commit 9cb2542079
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 378 additions and 47 deletions

View file

@ -132,6 +132,7 @@ export interface CreateActiveUser extends IChatCommand {
export interface StartChat extends IChatCommand {
type: "startChat"
subscribeConnections?: boolean
expireChatItems?: boolean
}
export interface APIStopChat extends IChatCommand {
@ -451,7 +452,7 @@ export function cmdString(cmd: ChatCommand): string {
case "createActiveUser":
return `/u ${JSON.stringify(cmd.profile)}`
case "startChat":
return `/_start subscribe=${cmd.subscribeConnections ? "on" : "off"}`
return `/_start subscribe=${cmd.subscribeConnections ? "on" : "off"} expire=${cmd.expireChatItems ? "on" : "off"}`
case "apiStopChat":
return "/_stop"
case "setFilesFolder":