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

View File

@ -9,6 +9,16 @@ export interface ISubscriptions {
tunread: string;
tunreadUser: 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;