add full ids to message

This commit is contained in:
Evert Prants 2020-11-29 21:41:24 +02:00
parent 2a4b104129
commit c560aefe6a
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 13 additions and 32 deletions

View File

@ -28,6 +28,18 @@ class IRCMessage implements IMessage {
public target?: IMessageTarget,
public guest = true) {}
public get fullSenderID(): string {
return this.source.fullName + '/' + this.sender.id;
}
public get fullRoomID(): string {
if (!this.target) {
return this.source.fullName;
}
return this.source.fullName + '/' + this.target.id;
}
public resolve(...args: any[]): void {
this.resolved = true;
this.source.resolve(this, ...args);

View File

@ -14,10 +14,6 @@
"severity": "warning"
},
"eofline": true,
"import-blacklist": [
true,
"rxjs/Rx"
],
"import-spacing": true,
"indent": {
"options": [
@ -121,33 +117,6 @@
"check-type",
"check-typecast"
]
},
"component-class-suffix": true,
"contextual-lifecycle": true,
"directive-class-suffix": true,
"no-conflicting-lifecycle": true,
"no-host-metadata-property": true,
"no-input-rename": true,
"no-inputs-metadata-property": true,
"no-output-native": true,
"no-output-on-prefix": true,
"no-output-rename": true,
"no-outputs-metadata-property": true,
"template-banana-in-box": true,
"template-no-negated-async": true,
"use-lifecycle-interface": true,
"use-pipe-transform-interface": true,
"directive-selector": [
true,
"attribute",
"app",
"camelCase"
],
"component-selector": [
true,
"element",
"app",
"kebab-case"
]
}
}
}