This commit is contained in:
Peter Maquiran
2023-01-24 15:56:47 +01:00
parent 0748612054
commit fbd50137f3
153 changed files with 5997 additions and 953 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ export class MessageModel extends models.Model {
ts = JsonField({blank:true})
u = JsonField()
_id = models.CharField({blank:true})
origin = models.CharField({blank:true})
_updatedAt = models.IntegerField()
messageSend = models.BooleanField()
offline = models.BooleanField()
@@ -41,7 +42,7 @@ export class DeleteMessageModel extends models.Model {
models.register({
databaseName: 'chat-storage'+environment.version.lastCommitNumber,
type: 'indexedDB',
version: 10,
version: 11,
models: [MessageModel, DeleteMessageModel, attachments]
})
+1
View File
@@ -75,6 +75,7 @@ export interface Message {
u: U;
from: 'Offline'|'History'|'stream'| 'send'
t: string;
origin: 'history' | 'stream' | 'local'
_updatedAt: '';
mentions: any[];
channels: any[];
+1
View File
@@ -43,6 +43,7 @@ export interface ChatMessageInterface {
_updatedAt: number;
mentions: any[];
channels: any[];
origin?: 'history' | 'stream' | 'local'
};
+2 -1
View File
@@ -13,6 +13,7 @@ const object = [
'diplomas',
'expedientes-pr',
'despachos',
'*',
] as const;
export type IdObject = typeof object[number];
export type notificationObject = typeof object[number];