updating the IRoom and ISubscriptions

This commit is contained in:
AlexAlexandre 2021-12-16 15:13:12 -03:00
parent 49e30dc723
commit cdcfbe5f35
2 changed files with 13 additions and 4 deletions

View File

@ -1,7 +1,7 @@
import { Observable } from 'rxjs';
import Model from '@nozbe/watermelondb/Model'; import Model from '@nozbe/watermelondb/Model';
import { IRocketChatRecord } from './IRocketChatRecord'; import { IRocketChatRecord } from './IRocketChatRecord';
import { ISubscriptions } from './ISubscriptions';
export enum RoomType { export enum RoomType {
GROUP = 'p', GROUP = 'p',
@ -12,7 +12,7 @@ export enum RoomType {
E2E_MESSAGE_TYPE = 'e2e' E2E_MESSAGE_TYPE = 'e2e'
} }
export interface IRoom extends IRocketChatRecord { export interface IRoom extends IRocketChatRecord, ISubscriptions {
rid: string; rid: string;
t: RoomType; t: RoomType;
name: string; name: string;
@ -26,9 +26,8 @@ export interface IRoom extends IRocketChatRecord {
visitor?: boolean; visitor?: boolean;
autoTranslateLanguage?: boolean; autoTranslateLanguage?: boolean;
autoTranslate?: boolean; autoTranslate?: boolean;
observe?(): Observable<Model>;
usedCannedResponse?: string; usedCannedResponse?: string;
bannerClosed?: boolean; bannerClosed: boolean;
lastOpen?: Date; lastOpen?: Date;
draftMessage?: string; draftMessage?: string;
} }

View File

@ -9,6 +9,16 @@ export interface ISubscriptions {
tunread: string; tunread: string;
tunreadUser: string; tunreadUser: string;
tunreadGroup: string; tunreadGroup: string;
joinCodeRequired: boolean;
alert: boolean;
userMentions: object;
ls: Date;
jitsiTimeout: number;
ignored: any;
announcement: string;
sysMes: string;
archived: string;
broadcast: string;
} }
export type TSubscriptionsModel = ISubscriptions & Model; export type TSubscriptionsModel = ISubscriptions & Model;