diff options
Diffstat (limited to 'src/Account.ts')
-rw-r--r-- | src/Account.ts | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/Account.ts b/src/Account.ts index 8ebacf5b..ba9aa61e 100644 --- a/src/Account.ts +++ b/src/Account.ts @@ -25,6 +25,7 @@ import CommandRepository from './CommandRepository'; import AvatarSet from '@ui/AvatarSet'; import { IAvatar } from './Avatar.interface'; import CallManager from './CallManager'; +import MenuChatMessage from './MenuChatMessage'; type ConnectionCallback = (status: number, condition?: string) => void; @@ -51,7 +52,7 @@ export default class Account { private ownDiscoInfo: DiscoInfoChangeable; - private hookRepository = new HookRepository<any>(); + private hookRepository = new HookRepository(); private contactManager: ContactManager; @@ -59,6 +60,8 @@ export default class Account { private callManager: CallManager; + private chatMessageMenu: MenuChatMessage; + private options: Options; private pipes = {}; @@ -262,6 +265,14 @@ export default class Account { return this.callManager; } + public getChatMessageMenu(): MenuChatMessage { + if (!this.chatMessageMenu) { + this.chatMessageMenu = new MenuChatMessage(); + } + + return this.chatMessageMenu; + } + public getContact(jid?: IJID): IContact { return jid && jid.bare !== this.getJID().bare ? this.getContactManager().getContact(jid) : this.contact; } |