2022-01-11 13:51:48 +00:00
|
|
|
import Model from '@nozbe/watermelondb/Model';
|
|
|
|
|
|
|
|
import { IAttachment } from './IAttachment';
|
2022-02-16 21:14:28 +00:00
|
|
|
import { IEditedBy, ITranslations, IUserChannel, IUserMention, IUserMessage, MessageType } from './IMessage';
|
2022-01-11 13:51:48 +00:00
|
|
|
import { IReaction } from './IReaction';
|
|
|
|
|
|
|
|
export interface IThreadMessage {
|
2022-02-16 21:14:28 +00:00
|
|
|
tmsg?: string;
|
2022-01-11 13:51:48 +00:00
|
|
|
msg?: string;
|
2022-02-16 21:14:28 +00:00
|
|
|
t?: MessageType;
|
2022-01-11 13:51:48 +00:00
|
|
|
rid: string;
|
|
|
|
ts: Date;
|
|
|
|
u: IUserMessage;
|
|
|
|
alias?: string;
|
|
|
|
parseUrls?: boolean;
|
|
|
|
groupable?: boolean;
|
|
|
|
avatar?: string;
|
|
|
|
emoji?: string;
|
|
|
|
attachments?: IAttachment[];
|
|
|
|
urls?: string[];
|
|
|
|
_updatedAt?: Date;
|
|
|
|
status?: number;
|
|
|
|
pinned?: boolean;
|
|
|
|
starred?: boolean;
|
|
|
|
editedBy?: IEditedBy;
|
|
|
|
reactions?: IReaction[];
|
|
|
|
role?: string;
|
|
|
|
drid?: string;
|
|
|
|
dcount?: number;
|
|
|
|
dlm?: Date;
|
|
|
|
tmid?: string;
|
|
|
|
tcount?: number;
|
|
|
|
tlm?: Date;
|
|
|
|
replies?: string[];
|
|
|
|
mentions?: IUserMention[];
|
|
|
|
channels?: IUserChannel[];
|
|
|
|
unread?: boolean;
|
|
|
|
autoTranslate?: boolean;
|
|
|
|
translations?: ITranslations[];
|
|
|
|
e2e?: string;
|
2022-02-16 15:02:17 +00:00
|
|
|
subscription: { id: string };
|
2022-01-11 13:51:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export type TThreadMessageModel = IThreadMessage & Model;
|