Create group chat session on send, if it doesn't exist

This commit is contained in:
Casper Warden
2017-12-15 19:13:45 +00:00
parent 03c251d59d
commit 00a32523b9
29 changed files with 336 additions and 81 deletions

View File

@@ -18,9 +18,11 @@ export class Region
comms: Comms;
clientEvents: ClientEvents;
options: BotOptionFlags;
agent: Agent;
constructor(agent: Agent, clientEvents: ClientEvents, options: BotOptionFlags)
{
this.agent = agent;
this.options = options;
this.clientEvents = clientEvents;
this.circuit = new Circuit(clientEvents);
@@ -36,7 +38,7 @@ export class Region
}
activateCaps(seedURL: string)
{
this.caps = new Caps(this, seedURL, this.clientEvents);
this.caps = new Caps(this.agent, this, seedURL, this.clientEvents);
}
shutdown()
{