updating the IRoom and ISubscriptions
This commit is contained in:
parent
49e30dc723
commit
cdcfbe5f35
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue